Class AbstractCommandExecutor<T extends BaseCommandConfiguration>

  • All Implemented Interfaces:
    org.codehaus.plexus.logging.LogEnabled
    Direct Known Subclasses:
    CommandExecutor, OfflineCommandExecutor

    public abstract class AbstractCommandExecutor<T extends BaseCommandConfiguration>
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    An abstract command executor for executing CLI commands.
    Author:
    jdenise@redhat.com
    • Constructor Detail

      • AbstractCommandExecutor

        public AbstractCommandExecutor()
    • Method Detail

      • execute

        public abstract void execute​(T config,
                                     org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver)
                              throws MojoFailureException,
                                     MojoExecutionException
        Executes CLI commands based on the configuration.
        Parameters:
        config - the configuration used to execute the CLI commands
        artifactResolver - Resolver to retrieve CLI artifact for in-process execution.
        Throws:
        MojoFailureException - if the JBoss Home directory is required and invalid
        MojoExecutionException - if an error occurs executing the CLI commands