# 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.