Class CommandLineExec
java.lang.Object
edu.internet2.middleware.grouper.util.CommandLineExec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignCommand
(String theCommand) assignErrorOnNonZero
(boolean errorOnNonZero) assignWaitForCompletion
(boolean theWaitForCompletion) if true, then just run command and wait.assignWorkingDirectory
(File theWorkingDirectory) execute()
org.apache.commons.exec.CommandLine
org.apache.commons.exec.DefaultExecutor
int
org.apache.commons.exec.PumpStreamHandler
boolean
boolean
if true, then just run command and wait.
-
Constructor Details
-
CommandLineExec
public CommandLineExec()
-
-
Method Details
-
assignWaitForCompletion
if true, then just run command and wait. if false, then run in thread- Parameters:
theWaitForCompletion
-- Returns:
- this for chaining
-
isWaitForCompletion
public boolean isWaitForCompletion()if true, then just run command and wait. if false, then run in thread- Returns:
- if wait
-
getWorkingDirectory
-
assignWorkingDirectory
-
isErrorOnNonZero
public boolean isErrorOnNonZero() -
assignErrorOnNonZero
-
assignCommand
-
execute
-
getThread
-
getCommand
-
getCommandLine
public org.apache.commons.exec.CommandLine getCommandLine() -
getExecutor
public org.apache.commons.exec.DefaultExecutor getExecutor() -
getStdout
-
getStderr
-
getPumpStreamHandler
public org.apache.commons.exec.PumpStreamHandler getPumpStreamHandler() -
getExitValue
public int getExitValue()
-