Java 类org.gradle.api.tasks.scala.ScalaForkOptions 实例源码

项目:intellij-ce-playground    文件:ScalaModelBuilderImpl.java   
@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;
}
项目:Reer    文件:DaemonScalaCompiler.java   
private DaemonForkOptions createScalaForkOptions(T spec) {
    ScalaForkOptions options = spec.getScalaCompileOptions().getForkOptions();
    return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(),
            options.getJvmArgs(), zincClasspath, SHARED_PACKAGES);
}
项目:Reer    文件:BaseScalaCompileOptions.java   
/**
 * Options for running the Scala compiler in a separate process.
 */
@Nested
public ScalaForkOptions getForkOptions() {
    return forkOptions;
}
项目:Reer    文件:BaseScalaCompileOptions.java   
public void setForkOptions(ScalaForkOptions forkOptions) {
    this.forkOptions = forkOptions;
}
项目:Pushjet-Android    文件:DaemonScalaCompiler.java   
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);
}
项目:Pushjet-Android    文件:DaemonScalaCompiler.java   
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);
}