@groovy.transform.CompileStatic class DefaultExecTools extends Object
Non-JVM process execution tools for Gradle 7.x.
| Constructor and description |
|---|
DefaultExecTools
(org.ysb33r.grolifant.api.core.ProjectOperations po, Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
org.ysb33r.grolifant.api.core.executable.AppRunnerSpec |
appRunnerSpec()Creates a org.ysb33r.grolifant.api.core.executable.AppRunnerSpec. |
|
org.ysb33r.grolifant.api.core.executable.CommandEntryPoint |
commandEntryPoint()Returns an implementation that is optimised for the running version of Gradle. |
|
org.ysb33r.grolifant.api.core.downloader.Downloader |
downloader(String distributionName)Creates a new downloader for downlaoding packages / distributions. |
|
ExecSpec |
execSpec()Returns something that looks like an ExecSpec. |
|
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. |
Creates a org.ysb33r.grolifant.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 downlaoding packages / distributions.
distributionName - Name of distribution to be downloaded.Returns something that looks like 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.