api / org.gradle.process / ProcessForkOptions / environment

environment

abstract fun environment(environmentVariables: MutableMap<String, *>): ProcessForkOptions

Adds some environment variables to the environment for this process.

Parameters

environmentVariables - The environment variables. Must not be null.

Return
this

abstract fun environment(name: String, value: Any): ProcessForkOptions

Adds an environment variable to the environment for this process.

Parameters

name - The name of the variable.

value - The value for the variable. Must not be null.

Return
this