@Nullable @Contract("null -> null") private static ScalaForkOptionsImpl create(@Nullable ScalaForkOptions forkOptions) { if (forkOptions == null) return null; ScalaForkOptionsImpl result = new ScalaForkOptionsImpl(); result.setJvmArgs(forkOptions.getJvmArgs()); result.setMemoryInitialSize(forkOptions.getMemoryInitialSize()); result.setMemoryMaximumSize(forkOptions.getMemoryMaximumSize()); return result; }
private DaemonForkOptions createScalaForkOptions(T spec) { ScalaForkOptions options = spec.getScalaCompileOptions().getForkOptions(); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs(), zincClasspath, SHARED_PACKAGES); }
/** * Options for running the Scala compiler in a separate process. */ @Nested public ScalaForkOptions getForkOptions() { return forkOptions; }
public void setForkOptions(ScalaForkOptions forkOptions) { this.forkOptions = forkOptions; }
private DaemonForkOptions createScalaForkOptions(ScalaJavaJointCompileSpec spec) { ScalaForkOptions options = spec.getScalaCompileOptions().getForkOptions(); List<String> sharedPackages = Arrays.asList("scala", "com.typesafe.zinc", "xsbti", "com.sun.tools.javac"); return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(), options.getJvmArgs(), spec.getZincClasspath(), sharedPackages); }