public class CompileResult extends Object
Modifier and Type | Field and Description |
---|---|
private int |
action |
static int |
ACTION_ABORT |
static int |
ACTION_CONTINUE |
static int |
ACTION_RECONFIGURE |
private String[] |
cmdline
the command line
|
static int |
FAILED |
private String |
message
the error message
|
private int |
status |
private String |
stderr
the stderr of the command
|
private String |
stdout
the stdout of the command
|
static int |
SUCCESS |
Constructor and Description |
---|
CompileResult()
constructor, create a new successful result
|
CompileResult(String message,
String[] cmdline,
String stdout,
String stderr)
creates a new CompileResult with status FAILED
|
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
String |
getCmdline()
get command line of failed command as a string
|
String[] |
getCmdlineArray()
get command line of failed command as an array of strings
|
String |
getMessage()
return error message
|
int |
getStatus() |
String |
getStderr() |
String |
getStdout() |
boolean |
isAbort()
check whether to abort (convenience function)
|
boolean |
isContinue()
check whether to continue (convenience function)
|
boolean |
isReconfigure()
check whether to reconfigure (convenience function)
|
boolean |
isSuccess()
check for success (convenience function)
|
void |
setAction(int action) |
void |
setStatus(int status) |
public static final int SUCCESS
public static final int FAILED
public static final int ACTION_ABORT
public static final int ACTION_CONTINUE
public static final int ACTION_RECONFIGURE
private int status
private int action
public CompileResult()
public CompileResult(String message, String[] cmdline, String stdout, String stderr)
message
- description of the exceptioncmdline
- full command line of failed commandstdout
- standard output of failed commandstderr
- standard error of failed commandpublic void setStatus(int status)
public int getStatus()
public void setAction(int action)
public int getAction()
public boolean isSuccess()
public boolean isAbort()
public boolean isContinue()
public boolean isReconfigure()
public String getMessage()
public String getCmdline()
public String[] getCmdlineArray()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses