public interface JvmAppRunnerSpec
A specification to something that can be executed on the JVM and which be populated with various fork options for Java and in addition, can then be used to copy to other methods in the Gradle API that provides a JavaForkOptions in the parameters.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addCommandLineProcessor(String name, Integer order, CmdlineArgumentSpec processor)Adds a command-line processor that will process command-line arguments in a specific order. |
|
public void |
configureCmdline(Action<CmdlineArgumentSpec> configurator)Configures a CmdlineArgumentSpec instance. |
|
public void |
configureCmdline(groovy.lang.Closure<?> configurator)Configures a CmdlineArgumentSpec instance. |
|
public void |
configureEntrypoint(Action<JvmEntryPoint> configurator)Configures a JvmEntryPoint instance. |
|
public void |
configureEntrypoint(groovy.lang.Closure<?> configurator)Configures a JvmEntryPoint instance. |
|
public void |
configureForkOptions(Action<JavaForkOptionsWithEnvProvider> configurator)Configures a JavaForkOptionsWithEnvProvider instance. |
|
public void |
configureForkOptions(groovy.lang.Closure<?> configurator)Configures a JavaForkOptionsWithEnvProvider instance. |
|
public void |
configureProcess(Action<ProcessExecutionSpec> configurator)Configures a ProcessExecutionSpec. |
|
public void |
configureProcess(groovy.lang.Closure<?> configurator)Configures a ProcessExecutionSpec. |
|
public JavaExecSpec |
copyTo(JavaExecSpec target)Copies these options to the given options. |
|
public CmdlineArgumentSpec |
getCmdline()Direct access to the CmdlineArgumentSpec instance. |
|
public java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors()Provides direct access to the list of command-line processors. |
|
public JvmEntryPoint |
getEntrypoint()Direct access to the JvmEntryPoint instance. |
|
public String |
getExecutionSignature()A unique string which determines whether there were any changes. |
|
public JavaForkOptionsWithEnvProvider |
getForkOptions()Direct access to the JavaForkOptionsWithEnvProvider instance. |
|
public ProcessExecutionSpec |
getProcess()Direct access to the ProcessExecutionSpec instance. |
|
public ExecOutput |
submitAsJavaExec(AbstractJvmExecSpec spec)Runs a job using javaexec. |
<P extends SerializableWorkerAppParameters> |
public WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, WorkerExecutor worker, org.ysb33r.grolifant5.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
|
public WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, WorkerExecutor worker, Class<? extends WorkerAppCmdline> workerType)This method submits this job to a worker queue using a special worker type to invoke the class. |
Adds a command-line processor that will process command-line arguments in a specific order. For instance in a script, one want to proccess the exe args before the script args. In a system that has commands and subcommands, one wants to process this in the order of exe args, command args, and then subcommand args. This method allows the implementor to control the order of processing for all the groupings.
name - Name of command-line processor.order - Order in queue to process.processor - The specific grouping.Configures a CmdlineArgumentSpec instance.
configurator - Configurator.Configures a CmdlineArgumentSpec instance.
configurator - Configurator.Configures a JvmEntryPoint instance.
configurator - Configurator.Configures a JvmEntryPoint instance.
configurator - Configurator.Configures a JavaForkOptionsWithEnvProvider instance.
configurator - Configurator.Configures a JavaForkOptionsWithEnvProvider instance.
configurator - Configurator.Configures a ProcessExecutionSpec.
configurator - Configurator.Configures a ProcessExecutionSpec.
configurator - Configurator.Copies these options to the given options.
target - The target options.Direct access to the CmdlineArgumentSpec instance.
Provides direct access to the list of command-line processors. In many cases there will only be one item in the list which is for providing arguments to the executable itself. Some implementations will have more. Implementors can use this interface to manipulate order of evaluation.
null.Direct access to the JvmEntryPoint instance.
A unique string which determines whether there were any changes.
Direct access to the JavaForkOptionsWithEnvProvider instance.
Direct access to the ProcessExecutionSpec instance.
Runs a job using javaexec.
spec - Execution specificationSubmits 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.P - The type of the POJO/POGO that holds the parameters.This method submits this job to a worker queue using a special worker type to invoke the class.
This method ignores any main class that has been set in the execution spec. Ig it up to the caller to set a class that may or may not call the main class.
isolationMode - Isolation mode which is either classpath isolated or out of process.worker - Worker executor to submit to.workerType - The class type that will be launched inside the worker.