下面列出了怎么用org.gradle.api.tasks.compile.BaseForkOptions的API类实例代码及写法,或者点击链接到github查看源代码。
public PlayRun() {
ObjectFactory objects = getProject().getObjects();
httpPort = objects.property(Integer.class).value(DEFAULT_HTTP_PORT);
workingDir = objects.directoryProperty();
applicationJar = objects.fileProperty();
assetsJar = objects.fileProperty();
assetsDirs = getProject().files();
runtimeClasspath = getProject().files();
changingClasspath = getProject().files();
platform = objects.property(PlayPlatform.class);
forkOptions = new BaseForkOptions();
}
public DefaultPlayRunSpec(Iterable<File> classpath, Iterable<File> changingClasspath, File applicationJar, File assetsJar, Iterable<File> assetsDirs, File projectPath, BaseForkOptions forkOptions, int httpPort) {
this.classpath = toLinkedHashSet(classpath);
this.changingClasspath = changingClasspath != null ? toLinkedHashSet(changingClasspath) : Collections.emptySet();
this.applicationJar = applicationJar;
this.assetsJar = assetsJar;
this.assetsDirs = toLinkedHashSet(assetsDirs);
this.projectPath = projectPath;
this.forkOptions = forkOptions;
this.httpPort = httpPort;
}
@Override
public BaseForkOptions getForkOptions() {
return forkOptions;
}
/**
* fork options for the running a Play application.
*
* @return Fork options
*/
@Nested
public BaseForkOptions getForkOptions() {
return forkOptions;
}
BaseForkOptions getForkOptions();