public static class Minimize.Outputs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
command
The command that was run.
|
java.lang.String |
errout
The error output.
|
int |
exitValue
Exit value from running a process.
|
java.lang.String |
stdout
The standard output.
|
Constructor and Description |
---|
Outputs(org.apache.commons.exec.CommandLine command,
int exitValue,
java.lang.String stdout,
java.lang.String errout)
Create an Outputs object.
|
Outputs(java.lang.String command,
int exitValue,
java.lang.String stdout,
java.lang.String errout)
Create an Outputs object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
diagnostics()
Verbose toString().
|
(package private) static Minimize.Outputs |
failure(org.apache.commons.exec.CommandLine command,
java.lang.String errout)
Create an Outputs object representing a failed execution.
|
boolean |
isFailure()
Return true if the command failed.
|
boolean |
isSuccess()
Return true if the command succeeded.
|
public final java.lang.String command
public final int exitValue
public final java.lang.String stdout
public final java.lang.String errout
Outputs(java.lang.String command, int exitValue, java.lang.String stdout, java.lang.String errout)
command
- the command that was runexitValue
- exit value of processstdout
- standard outputerrout
- error outputOutputs(org.apache.commons.exec.CommandLine command, int exitValue, java.lang.String stdout, java.lang.String errout)
command
- the command that was runexitValue
- exit value of processstdout
- standard outputerrout
- error outputstatic Minimize.Outputs failure(org.apache.commons.exec.CommandLine command, java.lang.String errout)
command
- the command that was runerrout
- error outputpublic boolean isSuccess()
public boolean isFailure()
public java.lang.String diagnostics()