public interface Commandline
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT
Default process timeout = 1 minute
|
Modifier and Type | Method and Description |
---|---|
ProcessOutput |
execute(java.lang.String cmd)
Execute command line
|
ProcessOutput |
execute(java.lang.String[] cmd)
Execute command line
|
ProcessOutput |
execute(java.lang.String[] cmd,
java.io.File dir)
Execute command line
|
ProcessOutput |
execute(java.lang.String[] cmd,
java.lang.String[] environment)
Execute command line
|
ProcessOutput |
execute(java.lang.String[] cmd,
java.lang.String[] environment,
java.io.File dir)
Execute command line
|
ProcessOutput |
execute(java.lang.String cmd,
java.io.File dir)
Execute command line
|
ProcessOutput |
execute(java.lang.String cmd,
java.lang.String[] environment)
Execute command line
|
ProcessOutput |
execute(java.lang.String cmd,
java.lang.String[] environment,
java.io.File dir)
Execute command line
|
long |
getTimeout() |
boolean |
isLogEnabled() |
void |
log(java.lang.String text)
Print some log information.
|
void |
setTimeout(long timeout) |
static final long DEFAULT_TIMEOUT
ProcessOutput execute(java.lang.String cmd, java.lang.String[] environment, java.io.File dir) throws java.io.IOException, java.lang.InterruptedException
dir
- file working directorycmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String cmd, java.lang.String[] environment) throws java.io.IOException, java.lang.InterruptedException
cmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String cmd, java.io.File dir) throws java.io.IOException, java.lang.InterruptedException
dir
- file working directorycmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String cmd) throws java.io.IOException, java.lang.InterruptedException
cmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String[] cmd, java.lang.String[] environment, java.io.File dir) throws java.io.IOException, java.lang.InterruptedException
dir
- file working directorycmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String[] cmd, java.lang.String[] environment) throws java.io.IOException, java.lang.InterruptedException
cmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String[] cmd, java.io.File dir) throws java.io.IOException, java.lang.InterruptedException
dir
- file working directorycmd
- command linejava.io.IOException
java.lang.InterruptedException
ProcessOutput execute(java.lang.String[] cmd) throws java.io.IOException, java.lang.InterruptedException
cmd
- command linejava.io.IOException
java.lang.InterruptedException
long getTimeout()
void setTimeout(long timeout)
boolean isLogEnabled()
void log(java.lang.String text)
text
-