public interface ProcessBuilderImplementation
Although it is not required it is reasonable to have implementation of this
interface stateless. In such case instances of
using it will be thread safe.
|Modifier and Type||Method and Description|
Creates a process using the specified parameters and environment configuration.
@NonNull Process createProcess(@NonNull String executable, @NullAllowed String workingDirectory, @NonNull List<String> arguments, @NonNull List<String> paths, @NonNull Map<String,String> environment, boolean redirectErrorStream) throws IOException
executable- the name of the executable to run
workingDirectory- the working directory of the created process or
nullas implementation specific default
arguments- the arguments passed to the process
paths- the additional paths to add to
environment- environment variables to configure for the process
truethe error stream of the process should be redirected to standard output stream
IOException- IOException if the process could not be created
UserQuestionException- in case there is a need to interact with user, don't be afraid to throw a subclass of
Built on December 17 2017. | Portions Copyright 1997-2017 Oracle. All rights reserved.