org.apache.maven.shared.invoker
Interface InvocationResult

All Known Implementing Classes:
DefaultInvocationResult

public interface InvocationResult

Describes the result of a Maven invocation.

Version:
$Id: InvocationResult.java 662043 2008-05-31 16:27:02Z bentmann $
Author:
jdcasey

Method Summary
 org.codehaus.plexus.util.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

getExecutionException

org.codehaus.plexus.util.cli.CommandLineException getExecutionException()
Gets the exception that possibly occurred during the execution of the command line.

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

getExitCode

int getExitCode()
Gets the exit code from the Maven invocation. A non-zero value indicates a build failure. Note: This value is undefined if getExecutionException() reports an exception.

Returns:
The exit code from the Maven invocation.


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