public interface ExecOperations
An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.
| Modifier and Type | Method | Description |
|---|---|---|
ExecResult |
exec(Action<? super ExecSpec> action) |
Executes the specified external process.
|
ExecResult |
javaexec(Action<? super JavaExecSpec> action) |
Executes the specified external
java process. |
ExecResult exec(Action<? super ExecSpec> action)
ExecSpec, which is then used to run an external process.action - Action to configure the ExecSpecExecResult that can be used to check if the execution workedExecResult javaexec(Action<? super JavaExecSpec> action)
java process.
The given action is used to configure an JavaExecSpec, which is then used to run an external java process.action - Action to configure the JavaExecSpecExecResult that can be used to check if the execution worked