public class AbstractJvmExecSpec extends Object
A base class for specifying the execution of an entrypoint on a forked JVM.
| Constructor and description |
|---|
protected AbstractJvmExecSpec
(org.ysb33r.grolifant.api.core.ProjectOperations po) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
copyTo(JavaExecSpec execSpec)Copies this specification to a standard JavaExecSpec. |
|
T |
entrypoint(Action<JvmEntryPoint> configurator)Configures the entrypoint for the JVM executable |
|
T |
entrypoint(groovy.lang.Closure<?> configurator)Configures the entrypoint for the JVM executable |
|
protected JvmAppRunnerSpec |
getJvmForkOptions() |
|
T |
jvm(Action<JavaForkOptionsWithEnvProvider> configurator)Configures a JVM that will be forked. |
|
T |
jvm(groovy.lang.Closure<?> configurator)Configures a JVM that will be forked. |
|
T |
process(Action<ProcessExecutionSpec> configurator)Configures the stream redirection and exit code checks. |
|
T |
process(groovy.lang.Closure<?> configurator)Configures the stream redirections and exit checks. |
|
T |
runnerSpec(Action<CmdlineArgumentSpec> configurator)Configures the arguments. |
|
T |
runnerSpec(groovy.lang.Closure<?> configurator)Configures the arguments. |
<P extends SerializableWorkerAppParameters> |
WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, org.gradle.workers.WorkerExecutor worker, org.ysb33r.grolifant.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
Copies this specification to a standard JavaExecSpec.
execSpec - Target execution specification.Configures the entrypoint for the JVM executable
configurator - An action to configure the entrypointConfigures the entrypoint for the JVM executable
configurator - A closure to configure the entrypointConfigures a JVM that will be forked.
configurator - An action to configure the JVM's fork options.Configures a JVM that will be forked.
configurator - A closure to configure the JVM's fork options.Configures the stream redirection and exit code checks.
configurator - An action to configure the execution.Configures the stream redirections and exit checks.
configurator - A closure to configure the execution.Configures the arguments.
configurator - An action to configure the arguments.Configures the arguments.
configurator - A closure to configure the arguments.Submits this to a worker queue using an appropriate isolation mode.
isolationMode - Isolation mode which is either classpath isolated or out of process.worker - A worker execution instance.workerAppExecutorFactory - A factory instances that can create executor logic.parameterFactory - A factory which can create parameters and populate them from a JavaExecSpec. - The type of the POJO/POGO that holds the parameters.