public final class ProcessRunner extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessRunner.ProcessInfo |
| Modifier and Type | Field and Description |
|---|---|
static com.entwinemedia.fn.Pred<String> |
IGNORE |
static com.entwinemedia.fn.Pred<String> |
TO_CONSOLE |
| Modifier and Type | Method and Description |
|---|---|
static ProcessRunner.ProcessInfo |
mk(String commandLine) |
static ProcessRunner.ProcessInfo |
mk(String[] commandLine) |
static ProcessRunner.ProcessInfo |
mk(String[] commandLine,
boolean redirectErrorStream) |
static ProcessRunner.ProcessInfo |
mk(String commandLine,
boolean redirectErrorStream) |
static ProcessRunner.ProcessInfo |
mk(String commandLine,
Map<String,String> environment,
boolean redirectErrorStream) |
static ProcessRunner.ProcessInfo |
mk(String command,
String options) |
static ProcessRunner.ProcessInfo |
mk(String command,
String[] options) |
static ProcessRunner.ProcessInfo |
mk(String command,
String options,
boolean redirectErrorStream) |
static int |
run(ProcessRunner.ProcessInfo info,
com.entwinemedia.fn.Fn<String,Boolean> stdout,
com.entwinemedia.fn.Fn<String,Boolean> stderr) |
public static final com.entwinemedia.fn.Pred<String> IGNORE
public static final com.entwinemedia.fn.Pred<String> TO_CONSOLE
public static int run(ProcessRunner.ProcessInfo info, com.entwinemedia.fn.Fn<String,Boolean> stdout, com.entwinemedia.fn.Fn<String,Boolean> stderr) throws IOException
IOExceptionpublic static ProcessRunner.ProcessInfo mk(String commandLine)
public static ProcessRunner.ProcessInfo mk(String commandLine, Map<String,String> environment, boolean redirectErrorStream)
public static ProcessRunner.ProcessInfo mk(String command, String options)
public static ProcessRunner.ProcessInfo mk(String command, String[] options)
public static ProcessRunner.ProcessInfo mk(String[] commandLine)
public static ProcessRunner.ProcessInfo mk(String commandLine, boolean redirectErrorStream)
public static ProcessRunner.ProcessInfo mk(String[] commandLine, boolean redirectErrorStream)
public static ProcessRunner.ProcessInfo mk(String command, String options, boolean redirectErrorStream)
Copyright © 2009–2021 Opencast Project. All rights reserved.