public abstract class AbstractCommandExecutor<T extends BaseCommandConfiguration>
extends org.codehaus.plexus.logging.AbstractLogEnabled
| Constructor and Description |
|---|
AbstractCommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.wildfly.core.launcher.CliCommandBuilder |
createCommandBuilder(T config,
Path scriptFile) |
abstract void |
execute(T config,
org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver)
Executes CLI commands based on the configuration.
|
protected void |
executeInNewProcess(T config) |
protected abstract int |
executeInNewProcess(T config,
Path scriptFile,
StandardOutput stdout) |
protected int |
launchProcess(org.wildfly.core.launcher.CliCommandBuilder builder,
T config,
StandardOutput stdout) |
public abstract void execute(T config, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
config - the configuration used to execute the CLI commandsartifactResolver - Resolver to retrieve CLI artifact for in-process execution.org.apache.maven.plugin.MojoFailureException - if the JBoss Home directory is required and invalidorg.apache.maven.plugin.MojoExecutionException - if an error occurs executing the CLI commandsprotected abstract int executeInNewProcess(T config, Path scriptFile, StandardOutput stdout) throws org.apache.maven.plugin.MojoExecutionException, IOException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionprotected void executeInNewProcess(T config) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.wildfly.core.launcher.CliCommandBuilder createCommandBuilder(T config, Path scriptFile) throws IOException
IOExceptionprotected int launchProcess(org.wildfly.core.launcher.CliCommandBuilder builder,
T config,
StandardOutput stdout)
throws org.apache.maven.plugin.MojoExecutionException,
IOException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.