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