Package com.diffplug.spotless
Class ProcessRunner.Result
- java.lang.Object
-
- com.diffplug.spotless.ProcessRunner.Result
-
- Enclosing class:
- ProcessRunner
public static class ProcessRunner.Result extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
args()
String
assertExitZero(Charset charset)
Asserts that the exit code was zero, and if so, returns the content of stdout encoded with the given charset.int
exitCode()
boolean
exitNotZero()
Returns true if the exit code was not zero.byte[]
stdErr()
byte[]
stdOut()
String
toString()
-
-
-
Method Detail
-
exitCode
public int exitCode()
-
stdOut
public byte[] stdOut()
-
stdErr
public byte[] stdErr()
-
exitNotZero
public boolean exitNotZero()
Returns true if the exit code was not zero.
-
assertExitZero
public String assertExitZero(Charset charset)
Asserts that the exit code was zero, and if so, returns the content of stdout encoded with the given charset. If the exit code was not zero, throws an exception with useful debugging information.
-
-