api / org.gradle.process / ProcessForkOptions / getEnvironment

getEnvironment

abstract fun getEnvironment(): MutableMap<String, Any>

The environment variables to use for the process. Defaults to the environment of this process.

Return
The environment. Returns an empty map when there are no environment variables.