Class ProcessLauncher

java.lang.Object
VASSAL.tools.io.ProcessLauncher

public class ProcessLauncher extends Object
Since:
3.2.0
Author:
Joel Uckelman
  • Field Details

  • Constructor Details

    • ProcessLauncher

      public ProcessLauncher()
  • Method Details

    • launch

      public ProcessWrapper launch(String... args) throws IOException
      Launches a process.
      Parameters:
      args - the command-line arguments
      Throws:
      IOException - if the process fails to launch
    • launch

      public ProcessWrapper launch(File workDir, OutputStream stdout, OutputStream stderr, String... args) throws IOException
      Launches a process.
      Parameters:
      workDir - the process' working directory
      stdout - the stream where the process' STDOUT is redirected
      stderr - the stream where the process' STDERR is redirected
      args - the command-line arguments
      Throws:
      IOException - if the process fails to launch
    • launch

      public ProcessWrapper launch(File workDir, InputStreamPump stdoutPump, InputStreamPump stderrPump, String... args) throws IOException
      Launches a process.
      Parameters:
      workDir - the process' working directory
      stdoutPump - the stream where the process' STDOUT is redirected
      stderrPump - the stream where the process' STDERR is redirected
      args - the command-line arguments
      Throws:
      IOException - if the process fails to launch