Class BasicLauncher
java.lang.Object
com.ibm.wala.util.processes.Launcher
com.ibm.wala.util.processes.BasicLauncher
A generic process launcher
-
Nested Class Summary
Nested classes/interfaces inherited from class Launcher
Launcher.DrainerModifier and TypeClassDescriptionprotected classA thread that runs in a loop, performing the drain() action until a process terminates -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Launcher
captureStdErr, captureStdOut, drainStdErr, drainStdOut, getEnv, getInput, getStderr, getStdOut, getWorkingDir, isCaptureErr, isCaptureOutput, setEnv, setInput, setStdErr, setStdOut, setWorkingDir, spawnProcess, spawnProcessModifier and TypeMethodDescriptionprotected Launcher.Drainerprotected Launcher.Drainerprotected Threadprotected ThreadgetEnv()@Nullable byte[]getInput()@Nullable byte[]@Nullable byte[]@Nullable FilebooleanbooleanvoidvoidsetInput(byte[] input) Set input which will be fed to the launched process's stdinprotected voidsetStdErr(byte[] newErr) protected voidsetStdOut(byte[] newOutput) voidsetWorkingDir(File newWorkingDir) protected ProcessspawnProcess(@Nullable String cmd) Spawn a process to execute the given commandprotected ProcessspawnProcess(String[] cmd) Spawn a process to execute the given command
-
Field Details
-
cmd
-
-
Constructor Details
-
BasicLauncher
-
-
Method Details
-
getCmd
-
setCmd
-
toString
-
launch
Launch the process and wait until it is finished. Returns the exit value of the process.- Throws:
IllegalArgumentExceptionIOException
-