org.tigris.subversion.svnclientadapter.utils
Class Command

java.lang.Object
  extended by 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
Command(java.lang.String command)
           
 
Method Summary
 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 this Command object has terminated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(java.lang.String command)
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 this Command object has terminated

Returns:
the exit value of the process. By convention, 0 indicates normal termination.
Throws:
java.lang.InterruptedException