Utilities to help with building runnable classes.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static String |
parseVersionFromOutput(org.ysb33r.grolifant.api.core.ProjectOperations projectOperations, Iterable<String> argsForVersion, File executablePath, java.util.function.Function<String, String> versionParser, Action<ExecSpec> configurator = null
)Simplifies running an executable to obtain a version. |
Simplifies running an executable to obtain a version.
This is primarily used to implement a runExecutableAndReturnVersion method.
projectOperations - ProjectOperations instance.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 - Optional configurator to customise the execution specification.