org.gradle.process.JavaForkOptions Java Examples

The following examples show how to use org.gradle.process.JavaForkOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ForkingTestClassProcessor.java    From gradle-dockerized-test-plugin with Apache License 2.0 5 votes vote down vote up
public ForkingTestClassProcessor(WorkerProcessFactory workerFactory, WorkerTestClassProcessorFactory processorFactory, JavaForkOptions options, Iterable<File> classPath, Action<WorkerProcessBuilder> buildConfigAction, ModuleRegistry moduleRegistry) {
    this.workerFactory = workerFactory;
    this.processorFactory = processorFactory;
    this.options = options;
    this.classPath = classPath;
    this.buildConfigAction = buildConfigAction;
    this.moduleRegistry = moduleRegistry;
}
 
Example #2
Source File: ScottPlugin.java    From scott with MIT License 5 votes vote down vote up
@Override
public void apply(Project project) {

    ScottPluginExtension extension = project.getExtensions().create(PLUGIN_EXTENSION_NAME, ScottPluginExtension.class, DEFAULT_SCOTT_VERSION);
    Configuration configuration = configureAgentDependencies(project,extension);

    project.afterEvaluate( p -> {
        Task test = p.getTasks().getByName("test");
        JavaForkOptions opts = (JavaForkOptions)test;
        opts.getJvmArgumentProviders().add(new ScottAgent(configuration,extension));
    });
}
 
Example #3
Source File: ForkingTestClassProcessor.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public ForkingTestClassProcessor(Factory<WorkerProcessBuilder> workerFactory, WorkerTestClassProcessorFactory processorFactory, JavaForkOptions options, Iterable<File> classPath, Action<WorkerProcessBuilder> buildConfigAction) {
    this.workerFactory = workerFactory;
    this.processorFactory = processorFactory;
    this.options = options;
    this.classPath = classPath;
    this.buildConfigAction = buildConfigAction;
}
 
Example #4
Source File: JvmOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void copyTo(JavaForkOptions target) {
    target.setJvmArgs(extraJvmArgs);
    target.setSystemProperties(systemProperties);
    target.setMinHeapSize(minHeapSize);
    target.setMaxHeapSize(maxHeapSize);
    target.setBootstrapClasspath(bootstrapClasspath);
    target.setEnableAssertions(assertionsEnabled);
    target.setDebug(debug);
    target.systemProperties(immutableSystemProperties);
}
 
Example #5
Source File: ForkingTestClassProcessor.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public ForkingTestClassProcessor(Factory<WorkerProcessBuilder> workerFactory, WorkerTestClassProcessorFactory processorFactory, JavaForkOptions options, Iterable<File> classPath, Action<WorkerProcessBuilder> buildConfigAction) {
    this.workerFactory = workerFactory;
    this.processorFactory = processorFactory;
    this.options = options;
    this.classPath = classPath;
    this.buildConfigAction = buildConfigAction;
}
 
Example #6
Source File: JvmOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void copyTo(JavaForkOptions target) {
    target.setJvmArgs(extraJvmArgs);
    target.setSystemProperties(systemProperties);
    target.setMinHeapSize(minHeapSize);
    target.setMaxHeapSize(maxHeapSize);
    target.setBootstrapClasspath(bootstrapClasspath);
    target.setEnableAssertions(assertionsEnabled);
    target.setDebug(debug);
    target.systemProperties(immutableSystemProperties);
}
 
Example #7
Source File: SonarRunner.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Options for the analysis process. Configured via {@link org.gradle.sonar.runner.SonarRunnerRootExtension#forkOptions}.
 */
public JavaForkOptions getForkOptions() {
    if (forkOptions == null) {
        forkOptions = new DefaultJavaForkOptions(getFileResolver());
    }

    return forkOptions;
}
 
Example #8
Source File: ForkingTestClassProcessor.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public ForkingTestClassProcessor(Factory<WorkerProcessBuilder> workerFactory, WorkerTestClassProcessorFactory processorFactory, JavaForkOptions options, Iterable<File> classPath, Action<WorkerProcessBuilder> buildConfigAction) {
    this.workerFactory = workerFactory;
    this.processorFactory = processorFactory;
    this.options = options;
    this.classPath = classPath;
    this.buildConfigAction = buildConfigAction;
}
 
Example #9
Source File: JvmOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void copyTo(JavaForkOptions target) {
    target.setJvmArgs(extraJvmArgs);
    target.setSystemProperties(systemProperties);
    target.setMinHeapSize(minHeapSize);
    target.setMaxHeapSize(maxHeapSize);
    target.setBootstrapClasspath(bootstrapClasspath);
    target.setEnableAssertions(assertionsEnabled);
    target.setDebug(debug);
    target.systemProperties(immutableSystemProperties);
}
 
Example #10
Source File: ForkingTestClassProcessor.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public ForkingTestClassProcessor(Factory<WorkerProcessBuilder> workerFactory, WorkerTestClassProcessorFactory processorFactory, JavaForkOptions options, Iterable<File> classPath, Action<WorkerProcessBuilder> buildConfigAction) {
    this.workerFactory = workerFactory;
    this.processorFactory = processorFactory;
    this.options = options;
    this.classPath = classPath;
    this.buildConfigAction = buildConfigAction;
}
 
Example #11
Source File: SonarRunner.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Options for the analysis process. Configured via {@link org.gradle.sonar.runner.SonarRunnerRootExtension#forkOptions}.
 */
public JavaForkOptions getForkOptions() {
    if (forkOptions == null) {
        forkOptions = new DefaultJavaForkOptions(getFileResolver());
    }

    return forkOptions;
}
 
Example #12
Source File: JvmOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void copyTo(JavaForkOptions target) {
    target.setJvmArgs(extraJvmArgs);
    target.setSystemProperties(systemProperties);
    target.setMinHeapSize(minHeapSize);
    target.setMaxHeapSize(maxHeapSize);
    target.setBootstrapClasspath(bootstrapClasspath);
    target.setEnableAssertions(assertionsEnabled);
    target.setDebug(debug);
    target.systemProperties(immutableSystemProperties);
}
 
Example #13
Source File: JavaExec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public JavaExec copyTo(JavaForkOptions options) {
    javaExecHandleBuilder.copyTo(options);
    return this;
}
 
Example #14
Source File: SonarRunnerRootExtension.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Options for the Sonar Runner process.
 */
public JavaForkOptions getForkOptions() {
    return forkOptions;
}
 
Example #15
Source File: JavaExecHandleBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions bootstrapClasspath(Object... classpath) {
    javaOptions.bootstrapClasspath(classpath);
    return this;
}
 
Example #16
Source File: JavaExecHandleBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions copyTo(JavaForkOptions options) {
    throw new UnsupportedOperationException();
}
 
Example #17
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions jvmArgs(Iterable<?> arguments) {
    options.jvmArgs(arguments);
    return this;
}
 
Example #18
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions jvmArgs(Object... arguments) {
    jvmArgs(Arrays.asList(arguments));
    return this;
}
 
Example #19
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions systemProperties(Map<String, ?> properties) {
    options.systemProperties(properties);
    return this;
}
 
Example #20
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions systemProperty(String name, Object value) {
    options.systemProperty(name, value);
    return this;
}
 
Example #21
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions bootstrapClasspath(Object... classpath) {
    options.bootstrapClasspath(classpath);
    return this;
}
 
Example #22
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions copyTo(JavaForkOptions target) {
    super.copyTo(target);
    options.copyTo(target);
    return this;
}
 
Example #23
Source File: Test.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Test copyTo(JavaForkOptions target) {
    forkOptions.copyTo(target);
    return this;
}
 
Example #24
Source File: JavaExec.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public JavaExec copyTo(JavaForkOptions options) {
    javaExecHandleBuilder.copyTo(options);
    return this;
}
 
Example #25
Source File: SonarRunnerRootExtension.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void setForkOptions(JavaForkOptions forkOptions) {
    this.forkOptions = forkOptions;
}
 
Example #26
Source File: JavaExec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public JavaExec copyTo(JavaForkOptions options) {
    javaExecHandleBuilder.copyTo(options);
    return this;
}
 
Example #27
Source File: JavaExecHandleBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions bootstrapClasspath(Object... classpath) {
    javaOptions.bootstrapClasspath(classpath);
    return this;
}
 
Example #28
Source File: JavaExecHandleBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions copyTo(JavaForkOptions options) {
    throw new UnsupportedOperationException();
}
 
Example #29
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions jvmArgs(Iterable<?> arguments) {
    options.jvmArgs(arguments);
    return this;
}
 
Example #30
Source File: DefaultJavaForkOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public JavaForkOptions jvmArgs(Object... arguments) {
    jvmArgs(Arrays.asList(arguments));
    return this;
}