api / org.gradle.process / ProcessForkOptions / setWorkingDir

setWorkingDir

abstract fun setWorkingDir(dir: File): Unit

Sets the working directory for the process.

Parameters

dir - The working directory. Must not be null.

Since
4.0

abstract fun setWorkingDir(dir: Any): Unit

Sets the working directory for the process. The supplied argument is evaluated as per .

Parameters

dir - The working directory. Must not be null.