|
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(Map 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
|
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 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. |
Method Detail |
---|
public ProcessForkOptions copyTo(ProcessForkOptions options)
options
- The target options
public ProcessForkOptions environment(Map environmentVariables)
environmentVariables
- The environment variables. Must not be null.
public ProcessForkOptions environment(String name, Object value)
name
- The name of the variable.value
- The value for the variable. Must not be null.
public ProcessForkOptions executable(Object executable)
executable
- The executable. Must not be null.
public Map getEnvironment()
public String getExecutable()
public File getWorkingDir()
public void setEnvironment(Map environmentVariables)
environmentVariables
- The environment variables. Must not be null.
public void setExecutable(Object executable)
executable
- The executable. Must not be null.
public void setWorkingDir(Object dir)
dir
- The working directory. Must not be null.
public ProcessForkOptions workingDir(Object dir)
dir
- The working directory. Must not be null.
Gradle API 1.12