Launcher |
Launcher.addEnvironmentVariable(String key,
String value) |
Adds an environment variable to the process being created.
|
Launcher |
Launcher.addEnvironmentVariables(Map<String,String> env) |
Adds the environment variables to the process being created.
|
Launcher |
Launcher.inherit() |
Sets the output and error streams to inherit the output and error streams from it's parent process.
|
static Launcher |
Launcher.of(CommandBuilder builder) |
Creates a new launcher to create a process based on the command builder.
|
Launcher |
Launcher.redirectError(File file) |
Redirects the error stream of the process to a file.
|
Launcher |
Launcher.redirectError(ProcessBuilder.Redirect destination) |
Redirects the error stream of the process to the destination provided.
|
Launcher |
Launcher.redirectOutput(File file) |
Redirects the output of the process to a file.
|
Launcher |
Launcher.redirectOutput(ProcessBuilder.Redirect destination) |
Redirects the output of the process to the destination provided.
|
Launcher |
Launcher.redirectOutput(Path path) |
Redirects the output of the process to a file.
|
Launcher |
Launcher.setDirectory(File dir) |
Sets the working directory for the process created.
|
Launcher |
Launcher.setDirectory(String dir) |
Sets the working directory for the process created.
|
Launcher |
Launcher.setDirectory(Path path) |
Sets the working directory for the process created.
|
Launcher |
Launcher.setRedirectErrorStream(boolean redirectErrorStream) |
Set to true if the error stream should be redirected to the output stream.
|