Class CommandLineExec

java.lang.Object
edu.internet2.middleware.grouper.util.CommandLineExec

public class CommandLineExec extends Object
  • Constructor Details

    • CommandLineExec

      public CommandLineExec()
  • Method Details

    • assignWaitForCompletion

      public CommandLineExec assignWaitForCompletion(boolean theWaitForCompletion)
      if true, then just run command and wait. if false, then run in thread
      Parameters:
      theWaitForCompletion -
      Returns:
      this for chaining
    • isWaitForCompletion

      public boolean isWaitForCompletion()
      if true, then just run command and wait. if false, then run in thread
      Returns:
      if wait
    • getWorkingDirectory

      public File getWorkingDirectory()
    • assignWorkingDirectory

      public CommandLineExec assignWorkingDirectory(File theWorkingDirectory)
    • isErrorOnNonZero

      public boolean isErrorOnNonZero()
    • assignErrorOnNonZero

      public CommandLineExec assignErrorOnNonZero(boolean errorOnNonZero)
    • assignCommand

      public CommandLineExec assignCommand(String theCommand)
    • execute

      public CommandLineExec execute()
    • getThread

      public Thread getThread()
    • getCommand

      public String getCommand()
    • getCommandLine

      public org.apache.commons.exec.CommandLine getCommandLine()
    • getExecutor

      public org.apache.commons.exec.DefaultExecutor getExecutor()
    • getStdout

      public CollectingLogOutputStream getStdout()
    • getStderr

      public CollectingLogOutputStream getStderr()
    • getPumpStreamHandler

      public org.apache.commons.exec.PumpStreamHandler getPumpStreamHandler()
    • getExitValue

      public int getExitValue()