don't use new groovyc optimizations options in ancient groovyc-s that don't even have optimizations options

This commit is contained in:
peter
2015-03-16 12:15:28 +01:00
parent 1a8c0dace1
commit 65993ed954
@@ -71,10 +71,14 @@ public class DependentGroovycRunner {
config.setTargetDirectory(finalOutputs[0]);
}
}
if (!"false".equals(System.getProperty(GroovyRtConstants.GROOVYC_ASM_RESOLVING_ONLY))) {
config.getOptimizationOptions().put("asmResolving", true);
config.getOptimizationOptions().put("classLoaderResolving", false);
try {
if (!"false".equals(System.getProperty(GroovyRtConstants.GROOVYC_ASM_RESOLVING_ONLY))) {
config.getOptimizationOptions().put("asmResolving", true);
config.getOptimizationOptions().put("classLoaderResolving", false);
}
}
catch (NoSuchMethodError ignored) { // old groovyc's don't have optimization options
}
System.out.println(GroovyRtConstants.PRESENTABLE_MESSAGE + "Groovyc: loading sources...");