Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 420848 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.m2e.tests/projects/compilerSettings18/pom.xml (+30 lines)
Added Link Here
1
<project xmlns="http://maven.apache.org/POM/4.0.0" 
2
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
3
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
  <modelVersion>4.0.0</modelVersion>
5
  
6
  <parent>
7
    <groupId>org.eclipse.m2e.test</groupId>
8
    <artifactId>m2e-test-parent</artifactId>
9
    <version>1.0.0</version>
10
  </parent>
11
  
12
  <groupId>org.eclipse.m2e.projects</groupId>
13
  <artifactId>compilerSettings18</artifactId>
14
  <version>1.0.0-SNAPSHOT</version>
15
  <packaging>jar</packaging>
16
  <description>test project for bug 420848</description>
17
  
18
  <build>
19
    <plugins>
20
      <plugin>
21
        <groupId>org.apache.maven.plugins</groupId>
22
        <artifactId>maven-compiler-plugin</artifactId>
23
        <configuration>
24
          <source>1.8</source>
25
          <target>1.8</target>
26
        </configuration>
27
      </plugin>
28
    </plugins>
29
  </build>
30
</project>
(-)a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/project/CompilerSettings18Test.java (-1 / +23 lines)
Added Link Here
0
- 
1
2
package org.eclipse.m2e.tests.project;
3
4
import org.eclipse.core.resources.IProject;
5
import org.eclipse.jdt.core.IJavaProject;
6
import org.eclipse.jdt.core.JavaCore;
7
8
import org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase;
9
10
11
public class CompilerSettings18Test extends AbstractMavenProjectTestCase {
12
13
  public void testCompilerSettings18() throws Exception {
14
    IProject project = importProject("projects/compilerSettings18/pom.xml");
15
    assertNoErrors(project);
16
    waitForJobsToComplete();
17
18
    IJavaProject javaProject = JavaCore.create(project);
19
    assertEquals("1.8", javaProject.getOption(JavaCore.COMPILER_SOURCE, true));
20
    assertEquals("1.8", javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, true));
21
  }
22
23
}

Return to bug 420848