api / org.gradle.api.tasks.compile / ForkOptions / setTempDir

setTempDir

open fun setTempDir(tempDir: String): Unit

Sets the directory used for temporary files that may be created to pass command line arguments to the compiler process. Defaults to null, in which case the directory will be chosen automatically.