@groovy.transform.CompileStatic class InternalJvmAppExecSpec extends Object implements org.ysb33r.grolifant5.api.core.jvm.JvmAppRunnerSpec, org.ysb33r.grolifant5.api.core.executable.ProcessExecOutput
Provides a class that can be populated with various fork options for Java and which can then be used to copy to other methods in the Gradle API that provides a JavaForkOptions in the parameters. Intended for Gradle 7.x
| Modifiers | Name | Description |
|---|---|---|
class |
InternalJvmAppExecSpec.1 |
|
protected static class |
InternalJvmAppExecSpec.Arguments |
| Constructor and description |
|---|
InternalJvmAppExecSpec
(Project tempProjectReference)Creates the JvmExecSpec on Gradle 7. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addCommandLineProcessor(String name, Integer order, org.ysb33r.grolifant5.api.core.CmdlineArgumentSpec processor)Adds a command-line processor that will process command-line arguments in a specific order. |
|
protected java.util.List<String> |
buildArguments()Builds a list of arguments by taking all the set arguments as well as the argument providers. |
|
void |
configureCmdline(Action<org.ysb33r.grolifant5.api.core.CmdlineArgumentSpec> configurator) |
|
void |
configureCmdline(groovy.lang.Closure<?> configurator) |
|
void |
configureEntrypoint(Action<org.ysb33r.grolifant5.api.core.jvm.JvmEntryPoint> configurator) |
|
void |
configureEntrypoint(groovy.lang.Closure<?> configurator) |
|
void |
configureForkOptions(Action<org.ysb33r.grolifant5.api.core.jvm.JavaForkOptionsWithEnvProvider> configurator) |
|
void |
configureForkOptions(groovy.lang.Closure<?> configurator) |
|
void |
configureProcess(Action<org.ysb33r.grolifant5.api.core.executable.ProcessExecutionSpec> configurator) |
|
void |
configureProcess(groovy.lang.Closure<?> configurator) |
|
protected void |
copyArguments(JavaExecSpec target)Copies command arguments (non-JVM) target JavaExecSpec and well as command providers. |
|
protected void |
copyDebugOptions(JavaExecSpec target)Copies debug options to target JavaExecSpec. |
|
JavaExecSpec |
copyTo(JavaExecSpec options) |
|
protected void |
copyToJavaExecSpec(JavaExecSpec target)Copies all settings to a target JavaExecSpec. |
|
java.util.Collection<org.ysb33r.grolifant5.api.core.executable.CmdLineArgumentSpecEntry> |
getCommandLineProcessors()Provides direct access to the list of command-line processors. |
|
protected java.util.Map<String, ?> |
getExecutionParameters()Loads executions parameters from the current execution specification. |
|
String |
getExecutionSignature()A unique string which determines whether there were any changes. |
|
void |
processOutput(org.ysb33r.grolifant5.api.core.runnable.ExecOutput output)Processes the output. |
<P extends SerializableWorkerAppParameters> |
org.ysb33r.grolifant5.api.core.jvm.worker.WorkerPromise |
submitToWorkQueue(org.ysb33r.grolifant5.api.core.jvm.worker.WorkerIsolation isolationMode, WorkerExecutor worker, org.ysb33r.grolifant5.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, org.ysb33r.grolifant5.api.core.jvm.worker.WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
Creates the JvmExecSpec on Gradle 7.
tempProjectReference - A temporary project reference.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.Builds a list of arguments by taking all the set arguments as well as the argument providers. THe main purpose of this method is to provide a list of arguments to be passed to a Worker instance.
Copies command arguments (non-JVM) target JavaExecSpec and well as command providers.
target - Target JavaExecSpec.Copies debug options to target JavaExecSpec.
targetTarget - JavaExecSpec.Copies all settings to a target JavaExecSpec. Resolves environment then copies everything, because Gradle's API for the env does not recursively resolve values in the env.
target - Target JavaExecSpecProvides 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.Loads executions parameters from the current execution specification.
The primary purpose of this method is to build a map for use by getExecutionSignature. The default implementation will use the executable path and the arguments.
A unique string which determines whether there were any changes.
Processes the output.
Checks first if any outputs should be forwarded. Thereafter run all registered actions.
output - Output to processSubmits 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.