Class Command
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.utils.Command
-
public class Command extends java.lang.Object
execute 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 void
exec()
java.lang.Process
getProcess()
void
kill()
void
setErr(java.io.OutputStream err)
void
setOut(java.io.OutputStream out)
void
setParameters(java.lang.String[] parameters)
int
waitFor()
causes the current thread to wait, if necessary, until the process represented by thisCommand
object 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.InterruptedException
causes the current thread to wait, if necessary, until the process represented by thisCommand
object has terminated- Returns:
- the exit value of the process. By convention,
0
indicates normal termination. - Throws:
java.lang.InterruptedException
-
-