Package org.graalvm.polyglot.io
Class ProcessHandler.ProcessCommand
java.lang.Object
org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
- Enclosing interface:
ProcessHandler
Subprocess attributes passed to
start
method.- Since:
- 19.1.0
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(List<String> cmd, String cwd, Map<String, String> environment, boolean redirectErrorStream, ProcessHandler.Redirect inputRedirect, ProcessHandler.Redirect outputRedirect, ProcessHandler.Redirect errorRedirect) Creates a ProcessCommand.Returns the subprocess executable and arguments as an immutable list.Returns the subprocess working directory.Returns the subprocess environment as an immutable map.Returns the standard error output destination.Returns the standard input source.Returns the standard output destination.boolean
Return whether the standard error output should be merged into standard output.
-
Method Details
-
getCommand
Returns the subprocess executable and arguments as an immutable list.- Since:
- 19.1.0
-
getDirectory
Returns the subprocess working directory.- Since:
- 19.1.0
-
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
Returns the standard input source.- Since:
- 19.1.0
-
getOutputRedirect
Returns the standard output destination.- Since:
- 19.1.0
-
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
-