Class AbstractCommand

    • Field Detail

      • log

        protected final org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • AbstractCommand

        protected AbstractCommand​(org.apache.maven.plugin.logging.Log log,
                                  CommandExecutorDelegate delegate)
        Constructor. Creates a new instance of the command using the default working directory
      • AbstractCommand

        protected AbstractCommand​(org.apache.maven.plugin.logging.Log log,
                                  CommandExecutorDelegate delegate,
                                  File workDir)
        Constructor. Creates a new instance of the command using the specified working directory
    • Method Detail

      • execute

        public List<String> execute()
                             throws org.apache.maven.plugin.MojoExecutionException
        Description copied from interface: Command
        Executes the command
        Specified by:
        execute in interface Command
        Returns:
        A list of Strings representing the output lines
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the command execution fails
      • getCommand

        protected abstract List<String> getCommand()
        Returns the command to execute
        Returns:
        The command to execute
      • redirectError

        protected abstract boolean redirectError()
        Returns whether errors should be redirected