# ProcessForkOptions

interface ProcessForkOptions(source)

Specifies the options to use to fork a process.

#### Inheritors

JavaForkOptions
BaseExecSpec

## Functions

copyTo
Link copied to clipboard
abstract fun copyTo(options: ProcessForkOptions): ProcessForkOptions
Copies these options to the given target options.
environment
Link copied to clipboard
abstract fun environment(environmentVariables: Map<String, out Any>): ProcessForkOptions
Adds some environment variables to the environment for this process.
abstract fun environment(name: String, value: Any): ProcessForkOptions
Adds an environment variable to the environment for this process.
executable
Link copied to clipboard
abstract fun executable(executable: Any): ProcessForkOptions
Sets the name of the executable to use.
getEnvironment
Link copied to clipboard
abstract fun getEnvironment(): MapProperty<String, Any>
The environment variables to use for the process.
getExecutable
Link copied to clipboard
abstract fun getExecutable(): Property<String>
Returns the name of the executable to use.
getWorkingDir
Link copied to clipboard
abstract fun getWorkingDir(): DirectoryProperty
Returns the working directory for the process.
workingDir
Link copied to clipboard
abstract fun workingDir(dir: Any): ProcessForkOptions
Sets the working directory for the process.