public class ProcessUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_LOOP_COUNT
The default loop count.
|
static int |
DEFAULT_WAIT_TIME
The default wait time.
|
| Constructor and Description |
|---|
ProcessUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEnvironmentVariables(ProcessBuilder processBuilder,
Map<String,String> forAdding)
Adds the environment variables.
|
static ProcessBuilder |
createProcess(String[] args)
Creates the process.
|
static void |
removeEnvironmentVariables(ProcessBuilder processBuilder,
List<String> forRemoving)
Removes the environment variables.
|
static Process |
startProcess(String[] args,
ProcessBuilder processBuilder)
Start process.
|
static String[] |
translateCommandline(String toProcess)
Translate commandline.
|
public static int DEFAULT_WAIT_TIME
public static int DEFAULT_LOOP_COUNT
public static ProcessBuilder createProcess(String[] args) throws IOException
args - the argsIOException - Signals that an I/O exception has occurred.public static void addEnvironmentVariables(ProcessBuilder processBuilder, Map<String,String> forAdding)
processBuilder - the process builderforAdding - the for addingpublic static void removeEnvironmentVariables(ProcessBuilder processBuilder, List<String> forRemoving)
processBuilder - the process builderforRemoving - the for removingpublic static Process startProcess(String[] args, ProcessBuilder processBuilder) throws IOException
args - the argsprocessBuilder - the process builderIOException - Signals that an I/O exception has occurred.Copyright © 2010–2019 Eclipse Foundation. All rights reserved.