Package org.apache.maven.shared.invoker
Class DefaultInvocationResult
- java.lang.Object
-
- org.apache.maven.shared.invoker.DefaultInvocationResult
-
- All Implemented Interfaces:
InvocationResult
public final class DefaultInvocationResult extends java.lang.Object implements InvocationResult
Describes the result of a Maven invocation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getExitCode
public int getExitCode()
Description copied from interface:InvocationResult
Gets the exit code from the Maven invocation. A non-zero value indicates a build failure. Note: This value is undefined ifInvocationResult.getExecutionException()
reports an exception.- Specified by:
getExitCode
in interfaceInvocationResult
- Returns:
- The exit code from the Maven invocation.
-
getExecutionException
public org.apache.maven.shared.utils.cli.CommandLineException getExecutionException()
Description copied from interface:InvocationResult
Gets the exception that possibly occurred during the execution of the command line.- Specified by:
getExecutionException
in interfaceInvocationResult
- Returns:
- The exception that prevented to invoke Maven or
null
if the command line was successfully processed by the operating system.
-
-