@Singleton @Named public class CommandExecutor extends AbstractCommandExecutor<CommandConfiguration>
| Constructor and Description |
|---|
CommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(CommandConfiguration config,
org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver)
Executes CLI commands based on the configuration.
|
protected int |
executeInNewProcess(CommandConfiguration config,
Path scriptFile,
StandardOutput stdout) |
createCommandBuilder, executeInNewProcess, launchProcesspublic void execute(CommandConfiguration config, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
execute in class AbstractCommandExecutor<CommandConfiguration>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 int executeInNewProcess(CommandConfiguration config, Path scriptFile, StandardOutput stdout) throws org.apache.maven.plugin.MojoExecutionException, IOException
executeInNewProcess in class AbstractCommandExecutor<CommandConfiguration>org.apache.maven.plugin.MojoExecutionExceptionIOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.