Specifies the options to use to fork a process.
Type | Name and description |
---|---|
ProcessForkOptions |
copyTo(ProcessForkOptions options) Copies these options to the given target options. |
ProcessForkOptions |
environment(Map<String, ?> environmentVariables) Adds some environment variables to the environment for this process. |
ProcessForkOptions |
environment(String name, Object value) Adds an environment variable to the environment for this process. |
ProcessForkOptions |
executable(Object executable) Sets the name of the executable to use. |
Map<String, Object> |
getEnvironment() The environment variables to use for the process. |
String |
getExecutable() Returns the name of the executable to use. |
File |
getWorkingDir() Returns the working directory for the process. |
void |
setEnvironment(Map<String, ?> environmentVariables) Sets the environment variable to use for the process. |
void |
setExecutable(Object executable) Sets the name of the executable to use. |
void |
setWorkingDir(Object dir) Sets the working directory for the process. |
ProcessForkOptions |
workingDir(Object dir) Sets the working directory for the process. |
Copies these options to the given target options.
options
- The target optionsAdds some environment variables to the environment for this process.
environmentVariables
- The environment variables. Must not be null.Adds an environment variable to the environment for this process.
name
- The name of the variable.value
- The value for the variable. Must not be null.Sets the name of the executable to use.
executable
- The executable. Must not be null.The environment variables to use for the process. Defaults to the environment of this process.
Returns the name of the executable to use.
Returns the working directory for the process. Defaults to the project directory.
Sets the environment variable to use for the process.
environmentVariables
- The environment variables. Must not be null.Sets the name of the executable to use.
executable
- The executable. Must not be null.Sets the working directory for the process. The supplied argument is evaluated as per Project.file.
dir
- The working directory. Must not be null.Sets the working directory for the process. The supplied argument is evaluated as per Project.file.
dir
- The working directory. Must not be null.