public class ProcessHelper
extends Object
Constructor and Description |
---|
ProcessHelper(File dir,
String... cmd) |
ProcessHelper(String... cmd) |
Modifier and Type | Method and Description |
---|---|
ProcessResult |
execute()
Blocking execution.
|
ProcessResult |
execute(String outgoing)
Blocks execution, also passes a single line to the command's input stream.
|
static boolean |
ffs(String... cmd) |
String |
toString() |
public ProcessHelper(String... cmd)
public ProcessHelper(File dir, String... cmd)
public String toString()
toString
in class Object
public ProcessResult execute() throws InterruptedException, IOException
InterruptedException
IOException
public ProcessResult execute(String outgoing) throws InterruptedException, IOException
InterruptedException
IOException
public static boolean ffs(String... cmd)