|
|
@@ -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; |
|
|
} |
|
|
} |
|
|
|
|
|
/** |
|
|
|