SysCommandExecutor cmdExecutor = new SysCommandExecutor(); cmdExecutor.setOutputLogDevice(new LogDevice()); cmdExecutor.setErrorLogDevice(new LogDevice()); int exitStatus = cmdExecutor.runCommand(commandLine);
OR SysCommandExecutor cmdExecutor = new SysCommandExecutor(); int exitStatus = cmdExecutor.runCommand(commandLine); String cmdError = cmdExecutor.getCommandError(); String cmdOutput = cmdExecutor.getCommandOutput();
SysCommandExecutor cmdExecutor = new SysCommandExecutor(); cmdExecutor.setOutputLogDevice(new LogDevice()); cmdExecutor.setErrorLogDevice(new LogDevice()); int exitStatus = cmdExecutor.runCommand(commandLine);
OR SysCommandExecutor cmdExecutor = new SysCommandExecutor(); int exitStatus = cmdExecutor.runCommand(commandLine); String cmdError = cmdExecutor.getCommandError(); String cmdOutput = cmdExecutor.getCommandOutput();
SysCommandExecutor cmdExecutor = new SysCommandExecutor(); cmdExecutor.setOutputLogDevice(new LogDevice()); cmdExecutor.setErrorLogDevice(new LogDevice()); int exitStatus = cmdExecutor.runCommand(commandLine);
OR
SysCommandExecutor cmdExecutor = new SysCommandExecutor(); int exitStatus = cmdExecutor.runCommand(commandLine); String cmdError = cmdExecutor.getCommandError(); String cmdOutput = cmdExecutor.getCommandOutput();
NetExecutable
or CompilerExecutable
implementation can use the services of this interface for executing commands.
@author Shane Isbell
The implementation of this class contains the business logic to execute a command.
@see Command Pattern @see Command @author org.apache.maven.dotnet.compiler.CommandExecutorClassCompiler
implementation can use the services of this interface for executing commands.
The CommandFactory details the supported commands, all of which can marshalled using XStream and the BatchExecutionHelper. BatchExecutionHelper provides details on the xml format as well as how to use Drools Pipeline to automate the marshalling of BatchExecution and ExecutionResults.
|
|
|
|
|
|
|
|
|
|