Class Command
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.utils.Command
-
public class Command extends java.lang.Objectexecute a command. Some parts of this class come from SVNKit
-
-
Constructor Summary
Constructors Constructor Description Command(java.lang.String command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexec()java.lang.ProcessgetProcess()voidkill()voidsetErr(java.io.OutputStream err)voidsetOut(java.io.OutputStream out)voidsetParameters(java.lang.String[] parameters)intwaitFor()causes the current thread to wait, if necessary, until the process represented by thisCommandobject has terminated
-
-
-
Method Detail
-
setErr
public void setErr(java.io.OutputStream err)
- Parameters:
err- The err to set.
-
setOut
public void setOut(java.io.OutputStream out)
- Parameters:
out- The out to set.
-
setParameters
public void setParameters(java.lang.String[] parameters)
- Parameters:
parameters- The parameters to set.
-
getProcess
public java.lang.Process getProcess()
- Returns:
- Returns the process.
-
kill
public void kill()
-
exec
public void exec() throws java.io.IOException- Throws:
java.io.IOException
-
waitFor
public int waitFor() throws java.lang.InterruptedExceptioncauses the current thread to wait, if necessary, until the process represented by thisCommandobject has terminated- Returns:
- the exit value of the process. By convention,
0indicates normal termination. - Throws:
java.lang.InterruptedException
-
-