Interface CommandExecutorDelegate

  • All Known Implementing Classes:
    CommandExecutorDelegateImpl

    public interface CommandExecutorDelegate
    Interface that allows delegation of command execution to a specific implementation
    • Method Detail

      • executeCommand

        List<String> executeCommand​(org.zeroturnaround.exec.ProcessExecutor processExecutor)
                             throws org.apache.maven.plugin.MojoExecutionException

        Executes the command as configured in the provided ProcessExecutor.

        Throws a MojoExecutionException in case command execution fails

        Parameters:
        processExecutor - The process executor carrying the command to execute
        Returns:
        A List of Strings representing the actual output of the command
        Throws:
        org.apache.maven.plugin.MojoExecutionException - In case execution of the command fails