public class ProcessBuilder extends Object
Constructor and Description |
---|
ProcessBuilder() |
Modifier and Type | Method and Description |
---|---|
static Process |
build(String logname,
File location,
boolean hook,
String... args)
*
|
static void |
cleanupProcess()
it will lookup for process that are dead already, eliminating leaks.
|
static String[] |
rebuildArgs(String[] args,
String... prefixArgs) |
public static void cleanupProcess()
public static Process build(String logname, File location, boolean hook, String... args) throws Exception
logname
- the prefix for log outputlocation
- The location where this command is being executed fromhook
- it will finish the process upon shutdown of the VMargs
- The arguments being passwed to the the CLI toolException
Copyright © 2020 JBoss by Red Hat. All rights reserved.