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 1401842 2012-10-24 19:49:47Z rfscholte $
Author:
jdcasey

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.
 

Method Detail

getExecutionException

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-2012 The Apache Software Foundation. All Rights Reserved.