public interface ExecOutput
This is modelled on the ExecOutput that was included as from Gradle 7.6.
Grolifant uses a separate class so that it can maintain backwards compatibility.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
assertNormalExitValue()Throws an exception if the process exited with a non-standard exit value. |
|
public Provider<ExecResult> |
getResult()Returns a provider of the execution result. |
|
public ExecStreamContent |
getStandardError()Gets a handle to the content of the process' standard error output. |
|
public ExecStreamContent |
getStandardOutput()Gets a handle to the content of the process' standard output. |
Throws an exception if the process exited with a non-standard exit value.
Returns a provider of the execution result.
The external process is executed only once and only when the value is requested for the first time.
If starting the process results in exception then the ensuing exception is permanently propagated to callers of Provider.get, Provider.getOrElse, Provider.getOrNull and Provider.isPresent.
Gets a handle to the content of the process' standard error output.
Gets a handle to the content of the process' standard output.