public class CommandLineExec extends Object
Constructor and Description |
---|
CommandLineExec() |
Modifier and Type | Method and Description |
---|---|
CommandLineExec |
assignCommand(String theCommand) |
CommandLineExec |
assignErrorOnNonZero(boolean errorOnNonZero) |
CommandLineExec |
assignWaitForCompletion(boolean theWaitForCompletion)
if true, then just run command and wait.
|
CommandLineExec |
assignWorkingDirectory(File theWorkingDirectory) |
CommandLineExec |
execute() |
String |
getCommand() |
org.apache.commons.exec.CommandLine |
getCommandLine() |
org.apache.commons.exec.DefaultExecutor |
getExecutor() |
int |
getExitValue() |
org.apache.commons.exec.PumpStreamHandler |
getPumpStreamHandler() |
CollectingLogOutputStream |
getStderr() |
CollectingLogOutputStream |
getStdout() |
Thread |
getThread() |
File |
getWorkingDirectory() |
boolean |
isErrorOnNonZero() |
boolean |
isWaitForCompletion()
if true, then just run command and wait.
|
public CommandLineExec assignWaitForCompletion(boolean theWaitForCompletion)
theWaitForCompletion
- public boolean isWaitForCompletion()
public File getWorkingDirectory()
public CommandLineExec assignWorkingDirectory(File theWorkingDirectory)
public boolean isErrorOnNonZero()
public CommandLineExec assignErrorOnNonZero(boolean errorOnNonZero)
public CommandLineExec assignCommand(String theCommand)
public CommandLineExec execute()
public Thread getThread()
public String getCommand()
public org.apache.commons.exec.CommandLine getCommandLine()
public org.apache.commons.exec.DefaultExecutor getExecutor()
public CollectingLogOutputStream getStdout()
public CollectingLogOutputStream getStderr()
public org.apache.commons.exec.PumpStreamHandler getPumpStreamHandler()
public int getExitValue()
Copyright © 2016 Internet2. All rights reserved.