}
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);
}