Class DefaultInvocationResult

  • All Implemented Interfaces:
    InvocationResult

    public final class DefaultInvocationResult
    extends java.lang.Object
    implements InvocationResult
    Describes the result of a Maven invocation.
    Version:
    $Id: DefaultInvocationResult.java 1401842 2012-10-24 19:49:47Z rfscholte $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.codehaus.plexus.util.cli.CommandLineException executionException
      The exception that prevented to execute the command line, will be null if Maven could be successfully started.
      private int exitCode
      The exit code reported by the Maven invocation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      (package private) void setExecutionException​(org.codehaus.plexus.util.cli.CommandLineException executionException)
      Sets the exception that prevented to execute the command line.
      (package private) void setExitCode​(int exitCode)
      Sets the exit code reported by the Maven invocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • executionException

        private org.codehaus.plexus.util.cli.CommandLineException executionException
        The exception that prevented to execute the command line, will be null if Maven could be successfully started.
      • exitCode

        private int exitCode
        The exit code reported by the Maven invocation.
    • Constructor Detail

      • DefaultInvocationResult

        DefaultInvocationResult()
        Creates a new invocation result
    • Method Detail

      • getExecutionException

        public org.codehaus.plexus.util.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 interface InvocationResult
        Returns:
        The exception that prevented to invoke Maven or null if the command line was successfully processed by the operating system.
      • setExitCode

        void setExitCode​(int exitCode)
        Sets the exit code reported by the Maven invocation.
        Parameters:
        exitCode - The exit code reported by the Maven invocation.
      • setExecutionException

        void setExecutionException​(org.codehaus.plexus.util.cli.CommandLineException executionException)
        Sets the exception that prevented to execute the command line.
        Parameters:
        executionException - The exception that prevented to execute the command line, may be null.