java.lang.Object
org.tigris.subversion.svnclientadapter.utils.Command

public class Command extends Object
execute a command. Some parts of this class come from SVNKit
  • Constructor Details

    • Command

      public Command(String command)
  • Method Details

    • setErr

      public void setErr(OutputStream err)
      Parameters:
      err - The err to set.
    • setOut

      public void setOut(OutputStream out)
      Parameters:
      out - The out to set.
    • setParameters

      public void setParameters(String[] parameters)
      Parameters:
      parameters - The parameters to set.
    • getProcess

      public Process getProcess()
      Returns:
      Returns the process.
    • kill

      public void kill()
    • exec

      public void exec() throws IOException
      Throws:
      IOException
    • waitFor

      public int waitFor() throws 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:
      InterruptedException