Class ExecUtil

java.lang.Object
org.checkerframework.framework.util.ExecUtil

public class ExecUtil extends Object
Utilities for executing external processes.
  • Field Details

  • Method Details

    • execute

      public static int execute(String[] cmd, OutputStream std, OutputStream err)
      Runs the given command in a new process
      Parameters:
      cmd - the command
      std - a stream to capture the standard output of the process
      err - a stream to capture the standard error of the process
      Returns:
      the exit status of the process