public interface ProcessForkOptions
Specifies the options to use to fork a process.
Modifier and Type | Method and Description |
---|---|
ProcessForkOptions |
copyTo(ProcessForkOptions options)
Copies these options to the given target options.
|
ProcessForkOptions |
environment(java.util.Map<java.lang.String,?> environmentVariables)
Adds some environment variables to the environment for this process.
|
ProcessForkOptions |
environment(java.lang.String name,
java.lang.Object value)
Adds an environment variable to the environment for this process.
|
ProcessForkOptions |
executable(java.lang.Object executable)
Sets the name of the executable to use.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEnvironment()
The environment variables to use for the process.
|
java.lang.String |
getExecutable()
Returns the name of the executable to use.
|
java.io.File |
getWorkingDir()
Returns the working directory for the process.
|
void |
setEnvironment(java.util.Map<java.lang.String,?> environmentVariables)
Sets the environment variable to use for the process.
|
void |
setExecutable(java.lang.Object executable)
Sets the name of the executable to use.
|
void |
setWorkingDir(java.lang.Object dir)
Sets the working directory for the process.
|
ProcessForkOptions |
workingDir(java.lang.Object dir)
Sets the working directory for the process.
|
java.lang.String getExecutable()
void setExecutable(java.lang.Object executable)
executable
- The executable. Must not be null.ProcessForkOptions executable(java.lang.Object executable)
executable
- The executable. Must not be null.java.io.File getWorkingDir()
void setWorkingDir(java.lang.Object dir)
Project.file(Object)
.dir
- The working directory. Must not be null.ProcessForkOptions workingDir(java.lang.Object dir)
Project.file(Object)
.dir
- The working directory. Must not be null.java.util.Map<java.lang.String,java.lang.Object> getEnvironment()
void setEnvironment(java.util.Map<java.lang.String,?> environmentVariables)
environmentVariables
- The environment variables. Must not be null.ProcessForkOptions environment(java.util.Map<java.lang.String,?> environmentVariables)
environmentVariables
- The environment variables. Must not be null.ProcessForkOptions environment(java.lang.String name, java.lang.Object value)
name
- The name of the variable.value
- The value for the variable. Must not be null.ProcessForkOptions copyTo(ProcessForkOptions options)
options
- The target options