Package org.gradle.api.tasks.compile
Class BaseForkOptions
java.lang.Object
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
Constructors -
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.voidsetJvmArgs(@Nullable List<String> jvmArgs) Sets any additional JVM arguments for the compiler process.voidsetMemoryInitialSize(String memoryInitialSize) Sets the initial heap size for the compiler process.voidsetMemoryMaximumSize(String memoryMaximumSize) Sets the maximum heap size for the compiler process.
-
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.
-