Class JavaToolResult
java.lang.Object
org.apache.maven.shared.utils.cli.javatool.JavaToolResult
Describes the result of a 
JavaTool invocation.- Since:
 - 0.5
 - Author:
 - Tony Chemit
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGets the command line used.Gets the exception that possibly occurred during the execution of the command line.intGets the exit code from the tool invocation.voidsetCommandline(Commandline commandline) Set the commandline used to obtain this result.voidsetExecutionException(CommandLineException executionException) Sets the exception that prevented to execute the command line.voidsetExitCode(int exitCode) Sets the exit code reported by the tool invocation. 
- 
Constructor Details
- 
JavaToolResult
public JavaToolResult() 
 - 
 - 
Method Details
- 
getExitCode
public int getExitCode()Gets the exit code from the tool invocation. A non-zero value indicates a build failure. Note: This value is undefined ifgetExecutionException()reports an exception.- Returns:
 - The exit code from the tool invocation.
 
 - 
getCommandline
Gets the command line used.- Returns:
 - The command line used
 
 - 
getExecutionException
Gets the exception that possibly occurred during the execution of the command line.- Returns:
 - The exception that prevented to invoke tool or 
nullif the command line was successfully processed by the operating system. 
 - 
setExitCode
public void setExitCode(int exitCode) Sets the exit code reported by the tool invocation.- Parameters:
 exitCode- The exit code reported by the tool invocation.
 
 -