コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: CurrentProcess.java プロジェクト: bcrochet/gradle
 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;
 }
コード例 #3
0
 public void setJvmArgs(Iterable<String> jvmArgs) {
   jvmOptions.setAllJvmArgs(jvmArgs);
 }