Class ProcessRunner


  • public class ProcessRunner
    extends java.lang.Object
    The ProcessRunner class helps running external processes.

    Created: 2019-04-12

    • Constructor Detail

      • ProcessRunner

        public ProcessRunner()
    • Method Detail

      • setWorkingDir

        public void setWorkingDir​(java.lang.String workingDir)
      • run

        public int run​(java.lang.String[] command)
                throws java.io.IOException,
                       java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • run

        public int run​(java.lang.String[] command,
                       java.io.PrintWriter errOut)
                throws java.io.IOException,
                       java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • runInBackground

        public void runInBackground​(java.lang.String[] command)
      • isRunning

        public boolean isRunning()
      • isTerminated

        public boolean isTerminated()
      • terminate

        public void terminate()