Class ProcessHandler.ProcessCommand
java.lang.Object
org.graalvm.polyglot.io.ProcessHandler.ProcessCommand
- Enclosing interface:
ProcessHandler
-
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
-
getDirectory
-
getEnvironment
-
isRedirectErrorStream
public boolean isRedirectErrorStream()Return whether the standard error output should be merged into standard output.- Since:
- 19.1.0
-
getInputRedirect
-
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
-