public class AbstractJvmExecTask<T extends AbstractJvmExecSpec> extends AbstractJvmModelExecTask implements ForkedJvmExecutable
Configures a task that will run an execution in a forked JVM.
| Constructor and description |
|---|
protected AbstractJvmExecTask
(WorkerExecutor we)A JVM exec task that can support workers. |
protected AbstractJvmExecTask
()A JVM exec task that cannot utilise workers. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected org.ysb33r.grolifant5.api.remote.worker.WorkerAppExecutorFactory<org.ysb33r.grolifant5.api.remote.worker.StandardWorkerAppParameters> |
createExecutorFactory()Create a worker app executor factory. |
|
protected WorkerAppParameterFactory<org.ysb33r.grolifant5.api.remote.worker.StandardWorkerAppParameters> |
createParameterFactory()Create a worker app parameter factory. |
| Methods inherited from class | Name |
|---|---|
class AbstractJvmModelExecTask |
createExecutorFactory, createParameterFactory, entrypoint, entrypoint, exec, getJvmExecSpec, jvm, jvm, preventExecutionMode, process, process, processOutput, runnerSpec, runnerSpec, setAwaitMode, setExecSpec, setExecutionMode |
class GrolifantDefaultTask |
execTools, fsOperations, jvmTools, projectTools, providerTools, stringTools |
A JVM exec task that can support workers.
we - WorkerExecutor to use.A JVM exec task that cannot utilise workers.
Create a worker app executor factory.
By default, this factory will look for a public static int/void main method. If this method uses
System.exit to return exit codes, then it will cause workers to exit prematurely. Only use the default
when either only using ExecutionMode.JAVA_EXEC or if the main method does not not use
System.exit.
For all other cases override this and provide your own implementation.
Create a worker app parameter factory.