mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't use new groovyc optimizations options in ancient groovyc-s that don't even have optimizations options
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user