Groovy Documentation

org.gradle.api.tasks.compile
[Java] Class BaseForkOptions

java.lang.Object
  org.gradle.api.tasks.compile.AbstractOptions
      org.gradle.api.tasks.compile.BaseForkOptions

public class BaseForkOptions
extends AbstractOptions

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


Method Summary
protected boolean excludeFromAntProperties(String fieldName)

List getJvmArgs()

Returns any additional JVM arguments for the compiler process.

String getMemoryInitialSize()

Returns the initial heap size for the compiler process.

String getMemoryMaximumSize()

Returns the maximum heap size for the compiler process.

void setJvmArgs(List 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 AbstractOptions
define, excludeFromAntProperties, getAntPropertyName, getAntPropertyValue, optionMap
 

Method Detail

excludeFromAntProperties

@Override
protected boolean excludeFromAntProperties(String fieldName)


getJvmArgs

@Input
@Optional
public List getJvmArgs()
Returns any additional JVM arguments for the compiler process. Defaults to the empty list.


getMemoryInitialSize

public String getMemoryInitialSize()
Returns the initial heap size for the compiler process. Defaults to null, in which case the JVM's default will be used.


getMemoryMaximumSize

public String getMemoryMaximumSize()
Returns the maximum heap size for the compiler process. Defaults to null, in which case the JVM's default will be used.


setJvmArgs

public void setJvmArgs(List jvmArgs)
Sets any additional JVM arguments for the compiler process. Defaults to the empty list.


setMemoryInitialSize

public void setMemoryInitialSize(String memoryInitialSize)
Sets the initial heap size for the compiler process. Defaults to null, 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 to null, in which case the JVM's default will be used.


 

Gradle API 1.8