public DaemonParameters(BuildLayoutParameters layout, Map<String, String> extraSystemProperties) { this.uid = UUID.randomUUID().toString(); jvmOptions.setAllJvmArgs(DEFAULT_JVM_ARGS); jvmOptions.systemProperties(extraSystemProperties); baseDir = new File(layout.getGradleUserHomeDir(), "daemon"); gradleUserHomeDir = layout.getGradleUserHomeDir(); }
private static JvmOptions inferJvmOptions() { // Try to infer the effective jvm options for the currently running process. // We only care about 'managed' jvm args, anything else is unimportant to the running build JvmOptions jvmOptions = new JvmOptions(new IdentityFileResolver()); jvmOptions.setAllJvmArgs(ManagementFactory.getRuntimeMXBean().getInputArguments()); return jvmOptions; }
public void setJvmArgs(Iterable<String> jvmArgs) { jvmOptions.setAllJvmArgs(jvmArgs); }