Package org.gradle.api.tasks.compile
Class BaseForkOptions
java.lang.Object
org.gradle.api.tasks.compile.AbstractOptions
org.gradle.api.tasks.compile.BaseForkOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProviderAwareCompilerDaemonForkOptions
Fork options for compilation. Only take effect if
fork
is true
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns any additional JVM arguments for the compiler process.Returns the initial heap size for the compiler process.Returns the maximum heap size for the compiler process.void
setJvmArgs
(List<String> jvmArgs) Sets any additional JVM arguments for the compiler process.void
setMemoryInitialSize
(String memoryInitialSize) Sets the initial heap size for the compiler process.void
setMemoryMaximumSize
(String memoryMaximumSize) Sets the maximum heap size for the compiler process.Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions
define
-
Constructor Details
-
BaseForkOptions
public BaseForkOptions()
-
-
Method Details
-
getMemoryInitialSize
Returns the initial heap size for the compiler process. Defaults tonull
, in which case the JVM's default will be used. -
setMemoryInitialSize
Sets the initial heap size for the compiler process. Defaults tonull
, in which case the JVM's default will be used. -
getMemoryMaximumSize
Returns the maximum heap size for the compiler process. Defaults tonull
, in which case the JVM's default will be used. -
setMemoryMaximumSize
Sets the maximum heap size for the compiler process. Defaults tonull
, in which case the JVM's default will be used. -
getJvmArgs
Returns any additional JVM arguments for the compiler process. Defaults to the empty list. -
setJvmArgs
Sets any additional JVM arguments for the compiler process. Defaults to the empty list. Empty or null arguments are filtered out because they cause JVM Launch to fail.
-