public final class DefaultInvocationResult extends java.lang.Object implements InvocationResult
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.shared.utils.cli.CommandLineException |
executionException
The exception that prevented to execute the command line, will be
null if Maven could be
successfully started. |
private int |
exitCode
The exit code reported by the Maven invocation.
|
Constructor and Description |
---|
DefaultInvocationResult()
Creates a new invocation result
|
Modifier and Type | Method and Description |
---|---|
org.apache.maven.shared.utils.cli.CommandLineException |
getExecutionException()
Gets the exception that possibly occurred during the execution of the command line.
|
int |
getExitCode()
Gets the exit code from the Maven invocation.
|
(package private) void |
setExecutionException(org.apache.maven.shared.utils.cli.CommandLineException executionException)
Sets the exception that prevented to execute the command line.
|
(package private) void |
setExitCode(int exitCode)
Sets the exit code reported by the Maven invocation.
|
private org.apache.maven.shared.utils.cli.CommandLineException executionException
null
if Maven could be
successfully started.private int exitCode
DefaultInvocationResult()
public int getExitCode()
InvocationResult
InvocationResult.getExecutionException()
reports an exception.getExitCode
in interface InvocationResult
public org.apache.maven.shared.utils.cli.CommandLineException getExecutionException()
InvocationResult
getExecutionException
in interface InvocationResult
null
if the command line was successfully
processed by the operating system.void setExitCode(int exitCode)
exitCode
- The exit code reported by the Maven invocation.void setExecutionException(org.apache.maven.shared.utils.cli.CommandLineException executionException)
executionException
- The exception that prevented to execute the command line, may be null
.