Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 237185 Details for
Bug 420848
maven-compiler-plugin source/target 1.8 not recognized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
[UPDATE-2] Unit test for compiler settings patch
0001-420848-maven-compiler-plugin-source-target-1.8-not-r.patch (text/plain), 3.45 KB, created by
Daniel Dietrich
on 2013-11-04 18:27:19 EST
(
hide
)
Description:
[UPDATE-2] Unit test for compiler settings patch
Filename:
MIME Type:
Creator:
Daniel Dietrich
Created:
2013-11-04 18:27:19 EST
Size:
3.45 KB
patch
obsolete
>From aa30f7e33d941bda5d8f1158fa0cb4c92839098a Mon Sep 17 00:00:00 2001 >From: Daniel Dietrich <daniel.dietrich@gmx.net> >Date: Tue, 5 Nov 2013 00:22:55 +0100 >Subject: [PATCH] 420848 - maven-compiler-plugin source/target 1.8 not > recognized > >The jdt component of m2e v1.4 does not import java 1.8 projects correctly into eclipse. >Instead of setting the compiler compliance level to java 1.8, java 1.4 is used. >This patch fixes this issue by adding JavaSE-1.8 to the list of known java runtime environments >and adding java 1.8 (respectively java 8) to the list of known source/target compliance levels. > >This contribution complies with http://www.eclipse.org/legal/CoO.php > >Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=420848 >Signed-off-by: Daniel Dietrich <daniel.dietrich@gmx.net> >--- > .../projects/compilerSettings18/pom.xml | 30 ++++++++++++++++++++++ > .../m2e/tests/project/CompilerSettings18Test.java | 23 +++++++++++++++++ > 2 files changed, 53 insertions(+) > create mode 100644 org.eclipse.m2e.tests/projects/compilerSettings18/pom.xml > create mode 100644 org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/project/CompilerSettings18Test.java > >diff --git a/org.eclipse.m2e.tests/projects/compilerSettings18/pom.xml b/org.eclipse.m2e.tests/projects/compilerSettings18/pom.xml >new file mode 100644 >index 0000000..1afc7f7 >--- /dev/null >+++ b/org.eclipse.m2e.tests/projects/compilerSettings18/pom.xml >@@ -0,0 +1,30 @@ >+<project xmlns="http://maven.apache.org/POM/4.0.0" >+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> >+ <modelVersion>4.0.0</modelVersion> >+ >+ <parent> >+ <groupId>org.eclipse.m2e.test</groupId> >+ <artifactId>m2e-test-parent</artifactId> >+ <version>1.0.0</version> >+ </parent> >+ >+ <groupId>org.eclipse.m2e.projects</groupId> >+ <artifactId>compilerSettings18</artifactId> >+ <version>1.0.0-SNAPSHOT</version> >+ <packaging>jar</packaging> >+ <description>test project for bug 420848</description> >+ >+ <build> >+ <plugins> >+ <plugin> >+ <groupId>org.apache.maven.plugins</groupId> >+ <artifactId>maven-compiler-plugin</artifactId> >+ <configuration> >+ <source>1.8</source> >+ <target>1.8</target> >+ </configuration> >+ </plugin> >+ </plugins> >+ </build> >+</project> >diff --git a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/project/CompilerSettings18Test.java b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/project/CompilerSettings18Test.java >new file mode 100644 >index 0000000..dc6750d >--- /dev/null >+++ b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/project/CompilerSettings18Test.java >@@ -0,0 +1,23 @@ >+ >+package org.eclipse.m2e.tests.project; >+ >+import org.eclipse.core.resources.IProject; >+import org.eclipse.jdt.core.IJavaProject; >+import org.eclipse.jdt.core.JavaCore; >+ >+import org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase; >+ >+ >+public class CompilerSettings18Test extends AbstractMavenProjectTestCase { >+ >+ public void testCompilerSettings18() throws Exception { >+ IProject project = importProject("projects/compilerSettings18/pom.xml"); >+ assertNoErrors(project); >+ waitForJobsToComplete(); >+ >+ IJavaProject javaProject = JavaCore.create(project); >+ assertEquals("1.8", javaProject.getOption(JavaCore.COMPILER_SOURCE, true)); >+ assertEquals("1.8", javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, true)); >+ } >+ >+} >-- >1.8.3.4 (Apple Git-47) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 420848
:
237137
|
237138
|
237162
|
237163
|
237184
| 237185