org.apache.maven.shared.invoker
Class DefaultInvocationResult

java.lang.Object
  extended by org.apache.maven.shared.invoker.DefaultInvocationResult
All Implemented Interfaces:
InvocationResult

public final class DefaultInvocationResult
extends Object
implements InvocationResult

Describes the result of a Maven invocation.

Version:
$Id: DefaultInvocationResult.java 1401842 2012-10-24 19:49:47Z rfscholte $

Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 if InvocationResult.getExecutionException() reports an exception.

Specified by:
getExitCode in interface InvocationResult
Returns:
The exit code from the Maven invocation.

getExecutionException

public CommandLineException getExecutionException()
Description copied from interface: InvocationResult
Gets the exception that possibly occurred during the execution of the command line.

Specified by:
getExecutionException in interface InvocationResult
Returns:
The exception that prevented to invoke Maven or null if the command line was successfully processed by the operating system.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.