Package org.apache.maven.shared.invoker
Class DefaultInvocationResult
java.lang.Object
org.apache.maven.shared.invoker.DefaultInvocationResult
- All Implemented Interfaces:
InvocationResult
Describes the result of a Maven invocation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.shared.utils.cli.CommandLineException
The exception that prevented to execute the command line, will benull
if Maven could be successfully started.private int
The exit code reported by the Maven invocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.shared.utils.cli.CommandLineException
Getter for the fieldexecutionException
.int
Getter for the fieldexitCode
.(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.
-
Field Details
-
executionException
private org.apache.maven.shared.utils.cli.CommandLineException executionExceptionThe exception that prevented to execute the command line, will benull
if Maven could be successfully started. -
exitCode
private int exitCodeThe exit code reported by the Maven invocation.
-
-
Constructor Details
-
DefaultInvocationResult
DefaultInvocationResult()Creates a new invocation result
-
-
Method Details
-
getExitCode
public int getExitCode()Getter for the field
exitCode
.- Specified by:
getExitCode
in interfaceInvocationResult
- Returns:
- a int.
-
getExecutionException
public org.apache.maven.shared.utils.cli.CommandLineException getExecutionException()Getter for the field
executionException
.- Specified by:
getExecutionException
in interfaceInvocationResult
- Returns:
- a
CommandLineException
object.
-
setExitCode
void setExitCode(int exitCode) Sets the exit code reported by the Maven invocation.- Parameters:
exitCode
- The exit code reported by the Maven invocation.
-