# ForkOptions

abstract class ForkOptions : ProviderAwareCompilerDaemonForkOptions(source)

Fork options for Java compilation. Only take effect if `CompileOptions.fork` is `true`.

## Constructors

ForkOptions
Link copied to clipboard
constructor()

## Properties

javaHome
Link copied to clipboard
@get:Internal
@get:Nullable
open var javaHome: File

## Functions

getAllJvmArgs
Link copied to clipboard
@Internal
open fun getAllJvmArgs(): Provider<List<String>>
Returns the full set of arguments to use to launch the JVM for the compiler process.
getExecutable
Link copied to clipboard
@Optional
@Input
abstract fun getExecutable(): Property<String>
Returns the compiler executable to be used.
getJvmArgs
Link copied to clipboard
@Optional
@Input
abstract fun getJvmArgs(): ListProperty<String>
Returns any additional JVM arguments for the compiler process.
getJvmArgumentProviders
Link copied to clipboard
@Optional
abstract fun getJvmArgumentProviders(): ListProperty<CommandLineArgumentProvider>
Returns any additional JVM argument providers for the compiler process.
getMemoryInitialSize
Link copied to clipboard
@Internal
abstract fun getMemoryInitialSize(): Property<String>
Returns the initial heap size for the compiler process.
getMemoryMaximumSize
Link copied to clipboard
@Internal
abstract fun getMemoryMaximumSize(): Property<String>
Returns the maximum heap size for the compiler process.
getTempDir
Link copied to clipboard
@Internal
abstract fun getTempDir(): Property<String>
Returns the directory used for temporary files that may be created to pass command line arguments to the compiler process.
setExecutable
Link copied to clipboard
open fun setExecutable(@Nullable executable: @Nullable String)
Sets the compiler executable to be used.
setJvmArgs
Link copied to clipboard
open fun setJvmArgs(@Nullable jvmArgs: @Nullable List<String>)
Sets any additional JVM arguments for the compiler process.
setMemoryInitialSize
Link copied to clipboard
open fun setMemoryInitialSize(memoryInitialSize: String)
Sets the initial heap size for the compiler process.
setMemoryMaximumSize
Link copied to clipboard
open fun setMemoryMaximumSize(memoryMaximumSize: String)
Sets the maximum heap size for the compiler process.
setTempDir
Link copied to clipboard
open fun setTempDir(@Nullable tempDir: @Nullable String)
Sets the directory used for temporary files that may be created to pass command line arguments to the compiler process.