mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
enable groovyc optimizations by default
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ public class GroovyBuilder extends ModuleLevelBuilder {
|
||||
|
||||
JpsSdk<JpsDummyElement> jdk = getJdk(chunk);
|
||||
String version = jdk == null ? SystemInfo.JAVA_RUNTIME_VERSION : jdk.getVersionString();
|
||||
boolean inProcess = "true".equals(System.getProperty("groovyc.in.process"));
|
||||
boolean inProcess = "true".equals(System.getProperty("groovyc.in.process", "true"));
|
||||
boolean mayDependOnUtilJar = version != null && StringUtil.compareVersionNumbers(version, "1.6") >= 0;
|
||||
boolean optimizeClassLoading = !inProcess && mayDependOnUtilJar && ourOptimizeThreshold != 0 && toCompilePaths.size() >= ourOptimizeThreshold;
|
||||
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@ class InProcessGroovyc {
|
||||
|
||||
@Nullable
|
||||
private static ClassLoader obtainParentLoader(Collection<String> compilationClassPath) throws MalformedURLException {
|
||||
if (!"true".equals(System.getProperty("groovyc.reuse.compiler.classes"))) {
|
||||
if (!"true".equals(System.getProperty("groovyc.reuse.compiler.classes", "true"))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user