public class BasicLauncher extends Launcher
Launcher.Drainer
Modifier and Type | Field and Description |
---|---|
protected String |
cmd |
env, stdErr, stdOut, workingDir
Constructor and Description |
---|
BasicLauncher(boolean captureOutput,
boolean captureErr,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
String |
getCmd() |
int |
launch()
Launch the process and wait until it is finished.
|
void |
setCmd(String newCmd) |
String |
toString() |
captureStdErr, captureStdOut, drainStdErr, drainStdOut, getEnv, getInput, getStderr, getStdOut, getWorkingDir, isCaptureErr, isCaptureOutput, setEnv, setInput, setStdErr, setStdOut, setWorkingDir, spawnProcess, spawnProcess
protected String cmd
public BasicLauncher(boolean captureOutput, boolean captureErr, Logger logger)
public String getCmd()
public void setCmd(String newCmd)
public int launch() throws IllegalArgumentException, IOException
IllegalArgumentException
IOException