本文整理汇总了Java中org.gradle.api.tasks.scala.ScalaForkOptions类的典型用法代码示例。如果您正苦于以下问题:Java ScalaForkOptions类的具体用法?Java ScalaForkOptions怎么用?Java ScalaForkOptions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ScalaForkOptions类属于org.gradle.api.tasks.scala包,在下文中一共展示了ScalaForkOptions类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.gradle.api.tasks.scala.ScalaForkOptions; //导入依赖的package包/类
@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;
}
示例2: createScalaForkOptions
import org.gradle.api.tasks.scala.ScalaForkOptions; //导入依赖的package包/类
private DaemonForkOptions createScalaForkOptions(T spec) {
ScalaForkOptions options = spec.getScalaCompileOptions().getForkOptions();
return new DaemonForkOptions(options.getMemoryInitialSize(), options.getMemoryMaximumSize(),
options.getJvmArgs(), zincClasspath, SHARED_PACKAGES);
}
示例3: getForkOptions
import org.gradle.api.tasks.scala.ScalaForkOptions; //导入依赖的package包/类
/**
* Options for running the Scala compiler in a separate process.
*/
@Nested
public ScalaForkOptions getForkOptions() {
return forkOptions;
}
示例4: setForkOptions
import org.gradle.api.tasks.scala.ScalaForkOptions; //导入依赖的package包/类
public void setForkOptions(ScalaForkOptions forkOptions) {
this.forkOptions = forkOptions;
}
示例5: createScalaForkOptions
import org.gradle.api.tasks.scala.ScalaForkOptions; //导入依赖的package包/类
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);
}