| Modifier and Type | Method and Description |
|---|---|
static boolean |
execute(List<String> command,
File workingDirectory,
InputStream stdin,
boolean closeStdin,
OutputStream stdout,
boolean closeStdout,
OutputStream stderr,
boolean closeStderr)
Executes the given command and waits until it completes.
|
public static boolean execute(List<String> command, @Nullable File workingDirectory, InputStream stdin, boolean closeStdin, OutputStream stdout, boolean closeStdout, OutputStream stderr, boolean closeStderr) throws IOException, InterruptedException
workingDirectory - See ProcessBuilder.directory(File)stdin - Where the command's standard input is read fromcloseStdin - Whether stdin should be closedstdout - Where the command's standard output is written tocloseStdout - Whether stdout should be closedstderr - Where the command's standard error is written tocloseStderr - Whether stderr should be closedIOExceptionInterruptedExceptionCopyright © 2018 Arno Unkrig. All rights reserved.