public abstract class AbstractExecWrapperTask<E extends AbstractExecSpec<E>> extends GrolifantDefaultTask implements ConfigCacheSafeOperations
Base task class to wrap external tool executions without exposing command-line parameters directly.
E is the execution specification.
| Constructor and description |
|---|
protected AbstractExecWrapperTask
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
environment(java.util.Map<String, ?> args)Add environmental variables to be passed to the exe. |
|
protected void |
exec()The default implementation will build an execution specification and run it. |
|
protected abstract E |
getExecSpec()Access to the execution specification. |
|
protected abstract Provider<File> |
getExecutableLocation()Location of executable |
|
public void |
setEnvironment(java.util.Map<String, ?> args)Replace current environment with new one. |
| Methods inherited from class | Name |
|---|---|
class GrolifantDefaultTask |
execTools, fsOperations, jvmTools, projectTools, providerTools, stringTools |
Add environmental variables to be passed to the exe.
args - Environmental variable key-value map.The default implementation will build an execution specification and run it.
Access to the execution specification.
Location of executable
Replace current environment with new one.
args - New environment key-value map of properties.