public class ProcessResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcessResult.Status
Status of a process' execution.
|
Constructor and Description |
---|
ProcessResult(int exitCode,
ProcessResult.Status status) |
ProcessResult(ProcessResult.Status status)
Instantiates a process result with the given status and an exit code of
-1 . |
Modifier and Type | Method and Description |
---|---|
int |
getExitCode() |
ProcessResult.Status |
getStatus() |
boolean |
isExecutedWithError() |
public ProcessResult(ProcessResult.Status status)
-1
.status
- Status describing the execution of the external process.public ProcessResult(int exitCode, ProcessResult.Status status)
exitCode
- Exit code of the process.status
- Status describing the execution of the external process.public int getExitCode()
public ProcessResult.Status getStatus()
public boolean isExecutedWithError()
true
if the execution occurred and resulted in a
return code different from 0, false
otherwise.Copyright © 2017 Eclipse JGit Project. All rights reserved.