aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2018-04-25 17:10:26 -0400
committerFred Bricon2018-04-25 17:10:26 -0400
commitf00ed31362eee4b2cd6468a11b378aa6551e0dfd (patch)
treec190ccaa838406455d5c07da0d31cec18a6c46bb
parentd787d520e2f37e540ce6644f768403abc4975e01 (diff)
downloadm2e-core-f00ed31362eee4b2cd6468a11b378aa6551e0dfd.tar.gz
m2e-core-f00ed31362eee4b2cd6468a11b378aa6551e0dfd.tar.xz
m2e-core-f00ed31362eee4b2cd6468a11b378aa6551e0dfd.zip
Bug 534049 : set release flag accordingly
Change-Id: I4f80a8a7482e6218f5c7b3fcb8ee4431d245cfa0 Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
index 751ba66e..4ccce8f8 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
@@ -584,6 +584,7 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
options.put(JavaCore.COMPILER_SOURCE, source);
options.put(JavaCore.COMPILER_COMPLIANCE, source);
options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, target);
+ options.put(JavaCore.COMPILER_RELEASE, (release == null) ? JavaCore.DISABLED : JavaCore.ENABLED);
if(generateParameters) {
options.put(JavaCore.COMPILER_CODEGEN_METHOD_PARAMETERS_ATTR, JavaCore.GENERATE);
}