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:
ForkOptions,GroovyForkOptions,ScalaForkOptions
public class BaseForkOptions extends AbstractOptions
Fork options for compilation. Only take effect ifforkistrue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseForkOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanexcludeFromAntProperties(String fieldName)List<String>getJvmArgs()Returns any additional JVM arguments for the compiler process.StringgetMemoryInitialSize()Returns the initial heap size for the compiler process.StringgetMemoryMaximumSize()Returns the maximum heap size for the compiler process.voidsetJvmArgs(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.-
Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions
define, getAntPropertyName, getAntPropertyValue, optionMap
-
-
-
-
Method Detail
-
getMemoryInitialSize
@Internal public String getMemoryInitialSize()
Returns the initial heap size for the compiler process. Defaults tonull, in which case the JVM's default will be used.
-
setMemoryInitialSize
public void setMemoryInitialSize(String memoryInitialSize)
Sets the initial heap size for the compiler process. Defaults tonull, in which case the JVM's default will be used.
-
getMemoryMaximumSize
@Internal public String getMemoryMaximumSize()
Returns the maximum heap size for the compiler process. Defaults tonull, in which case the JVM's default will be used.
-
setMemoryMaximumSize
public void setMemoryMaximumSize(String memoryMaximumSize)
Sets the maximum heap size for the compiler process. Defaults tonull, in which case the JVM's default will be used.
-
getJvmArgs
@Nullable @Optional @Input public List<String> getJvmArgs()
Returns any additional JVM arguments for the compiler process. Defaults to the empty list.
-
setJvmArgs
public void setJvmArgs(@Nullable List<String> jvmArgs)
Sets any additional JVM arguments for the compiler process. Defaults to the empty list.
-
excludeFromAntProperties
protected boolean excludeFromAntProperties(String fieldName)
- Overrides:
excludeFromAntPropertiesin classAbstractOptions
-
-