enable groovyc optimizations by default

This commit is contained in:
peter
2015-01-09 17:46:28 +01:00
parent 1e6ebba27a
commit 696c6a01ae
2 changed files with 2 additions and 2 deletions
@@ -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;
@@ -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;
}