| Type | Name and description |
|---|---|
static java.lang.String |
run(java.io.File wd, java.lang.String cmd, java.lang.String... args)Runs a command in the wd directory and returns its output. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Runs a command in the wd directory and returns its output. In case of error (exit
code different than 0), an exception is thrown.
wd - Directory where to execute the commandcmd - Command to executeargs - Command parameters