public class JavaToolResult
extends java.lang.Object
JavaTool
invocation.Modifier and Type | Field and Description |
---|---|
private Commandline |
commandline
The command line used to obtain this result.
|
private CommandLineException |
executionException
The exception that prevented to execute the command line, will be
null if jarSigner could be
successfully started. |
private int |
exitCode
The exit code reported by the Maven invocation.
|
Constructor and Description |
---|
JavaToolResult() |
Modifier and Type | Method and Description |
---|---|
Commandline |
getCommandline()
Gets the command line used.
|
CommandLineException |
getExecutionException()
Gets the exception that possibly occurred during the execution of the command line.
|
int |
getExitCode()
Gets the exit code from the tool invocation.
|
void |
setCommandline(Commandline commandline)
Set the commandline used to obtain this result.
|
void |
setExecutionException(CommandLineException executionException)
Sets the exception that prevented to execute the command line.
|
void |
setExitCode(int exitCode)
Sets the exit code reported by the tool invocation.
|
private CommandLineException executionException
null
if jarSigner could be
successfully started.private int exitCode
private Commandline commandline
public int getExitCode()
getExecutionException()
reports an exception.public Commandline getCommandline()
public CommandLineException getExecutionException()
null
if the command line was successfully
processed by the operating system.public void setExitCode(int exitCode)
exitCode
- The exit code reported by the tool invocation.public void setExecutionException(CommandLineException executionException)
executionException
- The exception that prevented to execute the command line, may be null
.public void setCommandline(Commandline commandline)
commandline
- the commandline used to obtain this result