|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface ProcessForkOptions
Specifies the options to use to fork a process.
Method Summary | |
---|---|
ProcessForkOptions
|
copyTo(ProcessForkOptions options)
Copies these options to the given target options. |
ProcessForkOptions
|
environment(java.util.Map 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
|
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 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. |
Method Detail |
---|
public ProcessForkOptions copyTo(ProcessForkOptions options)
options
- The target options
public ProcessForkOptions environment(java.util.Map environmentVariables)
environmentVariables
- The environment variables. Must not be null.
public 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.
public ProcessForkOptions executable(java.lang.Object executable)
executable
- The executable. Must not be null.
public java.util.Map getEnvironment()
public java.lang.String getExecutable()
public java.io.File getWorkingDir()
public void setEnvironment(java.util.Map environmentVariables)
environmentVariables
- The environment variables. Must not be null.
public void setExecutable(java.lang.Object executable)
executable
- The executable. Must not be null.
public void setWorkingDir(java.lang.Object dir)
dir
- The working directory. Must not be null.
public ProcessForkOptions workingDir(java.lang.Object dir)
dir
- The working directory. Must not be null.
Groovy Documentation