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 java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors()Provides direct access to the list of command-line processors. |
|
public String |
getExecutionSignature()A unique string which determines whether there were any changes. |
<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. |
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.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.A unique string which determines whether there were any changes.
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.P - The type of the POJO/POGO that holds the parameters.