@Named
@Singleton
public class OfflineCLIExecutor
extends org.codehaus.plexus.logging.AbstractLogEnabled
| Constructor and Description |
|---|
OfflineCLIExecutor() |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(String wildflyHome,
Commands commands,
StandardOutput stdout,
Map<String,String> systemProperties,
String[] javaOpts)
Executes the commands and scripts provided.
|
public int execute(String wildflyHome, Commands commands, StandardOutput stdout, Map<String,String> systemProperties, String[] javaOpts) throws IOException
wildflyHome - the path to WildFly for setting the jboss.home.dir system property or null if
should not be setcommands - the commands to executestdout - the output stream to write standard output tosystemProperties - the system properties to launch the CLI process withjavaOpts - the options to pass to the offline processIOException - if an error occurs processing the commandsCopyright © 2017 JBoss by Red Hat. All rights reserved.