Skip navigation links
oracle.jdeveloper.vcs.migrate
Class VCSShellRunner
java.lang.Object
oracle.jdeveloper.vcs.migrate.VCSShellRunner
-
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:
- no get / setUseNativeShell(), becomes a consumer responsibility.
- no get / setOutputBuffered(), output is always buffered.
- no setUseWin32Console(), not replaced.
- no getReadableCommand(), instead log page is set on simple process.
- no doExecSpi(), postExecSpi() subclass adaptation methods.
- Since:
- 9.0.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCSShellRunner
public VCSShellRunner()
setThreadPool
public void setThreadPool(VCSThreadPool threadPool)
setBufferOutputBinary
public void setBufferOutputBinary(boolean bufferOutputBinary)
setCommand
public void setCommand(java.lang.String command)
setCmdArray
public void setCmdArray(java.lang.String[] cmdArray)
setCmdList
public void setCmdList(java.util.Collection<java.lang.String> cmdList)
setEnvpArray
public void setEnvpArray(java.lang.String[] envpArray)
setEnvpMap
public void setEnvpMap(java.util.Map<java.lang.String,java.lang.String> envpMap)
setDirectory
public void setDirectory(java.io.File dir)
setDirURL
public void setDirURL(java.net.URL dir)
setTimeout
public void setTimeout(long timeout)
getCommand
public java.lang.String getCommand()
getCmdArray
public java.lang.String[] getCmdArray()
getCmdList
public java.util.Collection<java.lang.String> getCmdList()
getEnvpArray
public java.lang.String[] getEnvpArray()
getEnvpMap
public java.util.Map<java.lang.String,java.lang.String> getEnvpMap()
getDirectory
public java.io.File getDirectory()
getDirURL
public java.net.URL getDirURL()
getTimeout
public long getTimeout()
addOutputMonitor
public void addOutputMonitor(VCSStreamMonitor monitor)
removeOutputMonitor
public void removeOutputMonitor(VCSStreamMonitor monitor)
addErrorMonitor
public void addErrorMonitor(VCSStreamMonitor monitor)
removeErrorMonitor
public void removeErrorMonitor(VCSStreamMonitor monitor)
clearMonitors
public void clearMonitors()
createCommandSpi
protected java.lang.String[] createCommandSpi(java.lang.String[] cmdArray)
createCommandStringForLog
protected java.lang.String createCommandStringForLog(java.lang.String[] cmdArray)
preExecSpi
protected void preExecSpi()
throws java.lang.Exception
-
- Throws:
java.lang.Exception
setInputData
public void setInputData(java.lang.String inputData)
getInputData
public java.lang.String getInputData()
getSimpleProcess
public SimpleProcess getSimpleProcess()
getExitCode
public java.lang.Integer getExitCode()
getErrorText
public java.lang.String getErrorText()
getOutputText
public java.lang.String getOutputText()
getOutputBytes
public byte[] getOutputBytes()
isTimedOut
public boolean isTimedOut()
exec
public void exec()
throws java.lang.Exception
-
- Throws:
java.lang.Exception
execAndWait
public int execAndWait()
throws java.lang.Exception
-
- Throws:
java.lang.Exception
setSimpleProcess
protected void setSimpleProcess(SimpleProcess simpleProcess)
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.