use of org.gradle.api.tasks.scala.ScalaForkOptions in project gradle by gradle.
the class DaemonScalaCompiler method toInvocationContext.
@Override
protected InvocationContext toInvocationContext(T spec) {
ForkOptions javaOptions = spec.getCompileOptions().getForkOptions();
ScalaForkOptions scalaOptions = spec.getScalaCompileOptions().getForkOptions();
JavaForkOptions javaForkOptions = new BaseForkOptionsConverter(fileResolver).transform(mergeForkOptions(javaOptions, scalaOptions));
File invocationWorkingDir = javaForkOptions.getWorkingDir();
javaForkOptions.setWorkingDir(daemonWorkingDir);
DaemonForkOptions daemonForkOptions = new DaemonForkOptionsBuilder(fileResolver).javaForkOptions(javaForkOptions).classpath(zincClasspath).sharedPackages(SHARED_PACKAGES).keepAliveMode(KeepAliveMode.SESSION).build();
return new InvocationContext(invocationWorkingDir, daemonForkOptions);
}
Aggregations