public class VCSShellRunner
extends java.lang.Object
Utility class for running version client processes. This class provides a partial bridge between SCMShellRunner (now legacy) and its replacement, SimpleProcess in the oracle.ide.runner package, to ease migration to the 9.0.5 VCS framework. Some aspects of SCMShellRunner could not be bridged, or are not replaced here for implementation reasons:
Constructor and Description |
---|
VCSShellRunner() |
Modifier and Type | Method and Description |
---|---|
void |
addErrorMonitor(VCSStreamMonitor monitor) |
void |
addOutputMonitor(VCSStreamMonitor monitor) |
void |
clearMonitors() |
protected java.lang.String[] |
createCommandSpi(java.lang.String[] cmdArray) |
protected java.lang.String |
createCommandStringForLog(java.lang.String[] cmdArray) |
void |
exec() |
int |
execAndWait() |
java.lang.String[] |
getCmdArray() |
java.util.Collection<java.lang.String> |
getCmdList() |
java.lang.String |
getCommand() |
java.io.File |
getDirectory() |
java.net.URL |
getDirURL() |
java.lang.String[] |
getEnvpArray() |
java.util.Map<java.lang.String,java.lang.String> |
getEnvpMap() |
java.lang.String |
getErrorText() |
java.lang.Integer |
getExitCode() |
java.lang.String |
getInputData() |
byte[] |
getOutputBytes() |
java.lang.String |
getOutputText() |
SimpleProcess |
getSimpleProcess() |
long |
getTimeout() |
boolean |
isTimedOut() |
protected void |
preExecSpi() |
void |
removeErrorMonitor(VCSStreamMonitor monitor) |
void |
removeOutputMonitor(VCSStreamMonitor monitor) |
void |
setBufferOutputBinary(boolean bufferOutputBinary) |
void |
setCmdArray(java.lang.String[] cmdArray) |
void |
setCmdList(java.util.Collection<java.lang.String> cmdList) |
void |
setCommand(java.lang.String command) |
void |
setDirectory(java.io.File dir) |
void |
setDirURL(java.net.URL dir) |
void |
setEnvpArray(java.lang.String[] envpArray) |
void |
setEnvpMap(java.util.Map<java.lang.String,java.lang.String> envpMap) |
void |
setInputData(java.lang.String inputData) |
protected void |
setSimpleProcess(SimpleProcess simpleProcess) |
void |
setThreadPool(VCSThreadPool threadPool) |
void |
setTimeout(long timeout) |
public void setThreadPool(VCSThreadPool threadPool)
public void setBufferOutputBinary(boolean bufferOutputBinary)
public void setCommand(java.lang.String command)
public void setCmdArray(java.lang.String[] cmdArray)
public void setCmdList(java.util.Collection<java.lang.String> cmdList)
public void setEnvpArray(java.lang.String[] envpArray)
public void setEnvpMap(java.util.Map<java.lang.String,java.lang.String> envpMap)
public void setDirectory(java.io.File dir)
public void setDirURL(java.net.URL dir)
public void setTimeout(long timeout)
public java.lang.String getCommand()
public java.lang.String[] getCmdArray()
public java.util.Collection<java.lang.String> getCmdList()
public java.lang.String[] getEnvpArray()
public java.util.Map<java.lang.String,java.lang.String> getEnvpMap()
public java.io.File getDirectory()
public java.net.URL getDirURL()
public long getTimeout()
public void addOutputMonitor(VCSStreamMonitor monitor)
public void removeOutputMonitor(VCSStreamMonitor monitor)
public void addErrorMonitor(VCSStreamMonitor monitor)
public void removeErrorMonitor(VCSStreamMonitor monitor)
public void clearMonitors()
protected java.lang.String[] createCommandSpi(java.lang.String[] cmdArray)
protected java.lang.String createCommandStringForLog(java.lang.String[] cmdArray)
protected void preExecSpi() throws java.lang.Exception
java.lang.Exception
public void setInputData(java.lang.String inputData)
public java.lang.String getInputData()
public SimpleProcess getSimpleProcess()
public java.lang.Integer getExitCode()
public java.lang.String getErrorText()
public java.lang.String getOutputText()
public byte[] getOutputBytes()
public boolean isTimedOut()
public void exec() throws java.lang.Exception
java.lang.Exception
public int execAndWait() throws java.lang.Exception
java.lang.Exception
protected void setSimpleProcess(SimpleProcess simpleProcess)