| java.lang.Object com.izforge.izpack.installer.CompileResult
CompileResult | public class CompileResult (Code) | | This class describes the result of the compilation.
This class is here because error handling is not straight-forward with regard to compilation.
The error condition consists of an error message, the full command line which failed to execute
plus it's stdout and stderr. The reason for this class to exist is that there are three possible
reactions to the error (chosen by the user).
- abort
- ignore (continue anyway)
- reconfigure
author: Tino Schwarze |
ACTION_ABORT | final public static int ACTION_ABORT(Code) | | |
ACTION_CONTINUE | final public static int ACTION_CONTINUE(Code) | | |
ACTION_RECONFIGURE | final public static int ACTION_RECONFIGURE(Code) | | |
FAILED | final public static int FAILED(Code) | | |
SUCCESS | final public static int SUCCESS(Code) | | |
CompileResult | public CompileResult()(Code) | | constructor, create a new successful result
|
CompileResult | public CompileResult(Exception anException)(Code) | | Creates a result because of exception.
Parameters: anException - The exception. |
CompileResult | public CompileResult(String message, List<String> cmdline, String stdout, String stderr)(Code) | | creates a new CompileResult with status FAILED
Parameters: message - description of the exception Parameters: cmdline - full command line of failed command Parameters: stdout - standard output of failed command Parameters: stderr - standard error of failed command |
getAction | public int getAction()(Code) | | |
getCmdline | public String getCmdline()(Code) | | get command line of failed command as a string
command line of failed command |
getMessage | public String getMessage()(Code) | | return error message
the error message describing the action that failed (might be null) |
getStatus | public int getStatus()(Code) | | |
isAbort | public boolean isAbort()(Code) | | check whether to abort (convenience function)
|
isContinue | public boolean isContinue()(Code) | | check whether to continue (convenience function)
true if status is SUCCESS or action is CONTINUE |
isReconfigure | public boolean isReconfigure()(Code) | | check whether to reconfigure (convenience function)
|
isSuccess | public boolean isSuccess()(Code) | | check for success (convenience function)
|
setAction | public void setAction(int action)(Code) | | |
setStatus | public void setStatus(int status)(Code) | | |
|
|