org.netbeans.modules.extexecution/2 1.31

org.netbeans.spi.extexecution
Interface ProcessBuilderImplementation


public interface ProcessBuilderImplementation

The interface representing the implementation of ProcessBuilder.

Although it is not required it is reasonable to have implementation of this interface stateless. In such case instances of ProcessBuilder using it will be thread safe.

Since:
1.28
See Also:
ProcessBuilder

Method Summary
 Process createProcess(String executable, String workingDirectory, List<String> arguments, List<String> paths, Map<String,String> environment, boolean redirectErrorStream)
          Creates a process using the specified parameters and environment configuration.
 

Method Detail

createProcess

@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
Creates a process using the specified parameters and environment configuration.

Parameters:
executable - the name of the executable to run
workingDirectory - the working directory of the created process or null as implementation specific default
arguments - the arguments passed to the process
paths - the additional paths to add to PATH environment variable
environment - environment variables to configure for the process
redirectErrorStream - when true the error stream of the process should be redirected to standard output stream
Returns:
a process created with specified parameters and environment configuration
Throws:
IOException - IOException if the process could not be created

org.netbeans.modules.extexecution/2 1.31

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.