Skip to content
Permalink
Browse files

[#1800] Update compiler for support to java 8

  • Loading branch information
xael-fry committed Apr 15, 2014
1 parent 722fa14 commit 9778f24dda5c22b7df9b1cc6fd01cd492799d377
@@ -44,7 +44,7 @@ require: &allDependencies
- org.apache.ivy -> ivy 2.3.0
- org.bouncycastle -> bcprov-jdk15 1.45
- org.codehaus.groovy -> groovy-all 1.8.6
- org.eclipse.jdt.core 3.7.1.v_B76_R37x
- org.eclipse.jdt.core 3.9.50.v20140317-1741
- org.hibernate -> hibernate-core 4.1.3.Final
- org.hibernate -> hibernate-commons-annotations 4.0.1.Final
- org.hibernate -> hibernate-entitymanager 4.1.3.Final
Binary file not shown.
Binary file not shown.
@@ -55,13 +55,17 @@ public ApplicationCompiler(ApplicationClasses applicationClasses) {
javaVersion = CompilerOptions.VERSION_1_6;
} else if (System.getProperty("java.version").startsWith("1.7")) {
javaVersion = CompilerOptions.VERSION_1_7;
} else if (System.getProperty("java.version").startsWith("1.8")) {
javaVersion = CompilerOptions.VERSION_1_8;
}
if("1.5".equals(Play.configuration.get("java.source"))) {
javaVersion = CompilerOptions.VERSION_1_5;
} else if("1.6".equals(Play.configuration.get("java.source"))) {
javaVersion = CompilerOptions.VERSION_1_6;
} else if("1.7".equals(Play.configuration.get("java.source"))) {
javaVersion = CompilerOptions.VERSION_1_7;
}else if("1.8".equals(Play.configuration.get("java.source"))) {
javaVersion = CompilerOptions.VERSION_1_8;
}
this.settings.put(CompilerOptions.OPTION_Source, javaVersion);
this.settings.put(CompilerOptions.OPTION_TargetPlatform, javaVersion);
@@ -113,6 +117,12 @@ public ApplicationCompiler(ApplicationClasses applicationClasses) {
public char[][] getPackageName() {
return packageName;
}

@Override
public boolean ignoreOptionalProblems() {
// TODO Auto-generated method stub
return false;
}
}

/**

0 comments on commit 9778f24

Please sign in to comment.
You can’t perform that action at this time.