Class ProcessHandler.ProcessCommand

java.lang.Object
org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
Enclosing interface:
ProcessHandler

public static final class ProcessHandler.ProcessCommand extends Object
Subprocess attributes passed to start method.
Since:
19.1.0
  • Method Details

    • getCommand

      public List<String> getCommand()
      Returns the subprocess executable and arguments as an immutable list.
      Since:
      19.1.0
    • getDirectory

      public String getDirectory()
      Returns the subprocess working directory.
      Since:
      19.1.0
    • getEnvironment

      public Map<String,String> getEnvironment()
      Returns the subprocess environment as an immutable map.
      Since:
      19.1.0
    • isRedirectErrorStream

      public boolean isRedirectErrorStream()
      Return whether the standard error output should be merged into standard output.
      Since:
      19.1.0
    • getInputRedirect

      public ProcessHandler.Redirect getInputRedirect()
      Returns the standard input source.
      Since:
      19.1.0
    • getOutputRedirect

      public ProcessHandler.Redirect getOutputRedirect()
      Returns the standard output destination.
      Since:
      19.1.0
    • getErrorRedirect

      public ProcessHandler.Redirect getErrorRedirect()
      Returns the standard error output destination.
      Since:
      19.1.0
    • create

      public static ProcessHandler.ProcessCommand create(List<String> cmd, String cwd, Map<String,String> environment, boolean redirectErrorStream, ProcessHandler.Redirect inputRedirect, ProcessHandler.Redirect outputRedirect, ProcessHandler.Redirect errorRedirect)
      Creates a ProcessCommand. Not for direct use.
      Since:
      23.1.0