Example #1
0
 public Map<String, String> getEffectiveSystemProperties() {
   Map<String, String> systemProperties = new HashMap<String, String>();
   GUtil.addToMap(systemProperties, jvmOptions.getMutableSystemProperties());
   GUtil.addToMap(systemProperties, jvmOptions.getImmutableDaemonProperties());
   GUtil.addToMap(systemProperties, System.getProperties());
   return systemProperties;
 }
Example #2
0
 public void applyDefaultsFor(JavaVersion javaVersion) {
   if (hasJvmArgs) {
     return;
   }
   if (javaVersion.compareTo(JavaVersion.VERSION_1_9) >= 0) {
     jvmOptions.jvmArgs(DEFAULT_JVM_9_ARGS);
   } else {
     jvmOptions.jvmArgs(DEFAULT_JVM_ARGS);
   }
 }
Example #3
0
 public DaemonParameters(BuildLayoutParameters layout, Map<String, String> extraSystemProperties) {
   jvmOptions.systemProperties(extraSystemProperties);
   baseDir = new File(layout.getGradleUserHomeDir(), "daemon");
   gradleUserHomeDir = layout.getGradleUserHomeDir();
 }
Example #4
0
 public boolean getDebug() {
   return jvmOptions.getDebug();
 }
Example #5
0
 public void setDebug(boolean debug) {
   jvmOptions.setDebug(debug);
 }
Example #6
0
 public void setJvmArgs(Iterable<String> jvmArgs) {
   hasJvmArgs = true;
   jvmOptions.setAllJvmArgs(jvmArgs);
 }
Example #7
0
 public Map<String, String> getSystemProperties() {
   Map<String, String> systemProperties = new HashMap<String, String>();
   GUtil.addToMap(systemProperties, jvmOptions.getMutableSystemProperties());
   return systemProperties;
 }
Example #8
0
 public List<String> getEffectiveSingleUseJvmArgs() {
   return jvmOptions.getAllSingleUseImmutableJvmArgs();
 }