@groovy.transform.CompileStatic class DefaultExecTools extends Object implements org.ysb33r.grolifant5.api.core.ExecTools
Non-JVM process execution tools for Gradle 8.x.
| Constructor and description |
|---|
DefaultExecTools(Project tempProjectReference, ObjectFactory objF, ProviderFactory pf, ProjectLayout pl, ExecOperations execOps) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
org.ysb33r.grolifant5.api.core.executable.AppRunnerSpec |
appRunnerSpec()Creates a org.ysb33r.grolifant5.api.core.executable.AppRunnerSpec. |
|
org.ysb33r.grolifant5.api.core.executable.CommandEntryPoint |
commandEntryPoint()Returns an implementation that is optimised for the running version of Gradle. |
|
org.ysb33r.grolifant5.api.core.downloader.Downloader |
downloader(String distributionName)Creates a new downloader for downloading packages / distributions. |
|
org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
exec(OutputType stdout, OutputType stderr, Action<? super ExecSpec> action)Executes the specified external process. |
|
ExecSpec |
execSpec()Returns something that looks like an ExecSpec. |
|
org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
javaexec(OutputType stdout, OutputType stderr, Action<? super JavaExecSpec> action)Executes the specified external process. |
|
String |
parseVersionFromOutput(Iterable<String> argsForVersion, File executablePath, java.util.function.Function<String, String> versionParser, Action<ExecSpec> configurator)Simplifies running an executable to obtain a version. |
|
org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
provideExec(Action<? super ExecSpec> action)Executes the specified external process on-demand. |
|
org.ysb33r.grolifant5.api.core.runnable.ExecOutput |
provideJavaExec(Action<? super JavaExecSpec> action)Executes the specified external java process on-demand. |
Creates a org.ysb33r.grolifant5.api.core.executable.AppRunnerSpec.
This is primarily used internally by classes that implements execution specifications for non-JVM processes.
Returns an implementation that is optimised for the running version of Gradle.
nullCreates a new downloader for downloading packages / distributions.
distributionName - Name of distribution to be downloaded.Executes the specified external process.
stdout - How to capture standard output.stderr - How to capture error output.action - Configures an ExecSpecReturns something that looks like an ExecSpec.
Executes the specified external process.
stdout - How to capture standard output.stderr - How to capture error output.action - Configures an ExecSpec Simplifies running an executable to obtain a version.
This is primarily used to implement a runExecutableAndReturnVersion method.
argsForVersion - Arguments required to obtain a versionexecutablePath - Location of the executableversionParser - A parser for the output of running the executable which could extract the version.configurator - Additional configurator to customise the execution specification.Executes the specified external process on-demand.
Executes the specified external java process on-demand.
action - Configures a JavaExecSpec