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 if `fork` is `true`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseForkOptions()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `excludeFromAntProperties(String fieldName)`
    `List<String>` | `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<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, getAntPropertyName, getAntPropertyValue, optionMap`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BaseForkOptions

          public BaseForkOptions()

  - ### Method Detail

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

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

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

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

    - #### getJvmArgs

          @Input
          @Optional
          public List<String> getJvmArgs()

      Returns any additional JVM arguments for the compiler process. Defaults to the empty list.

    - #### setJvmArgs

          public void setJvmArgs(List<String> jvmArgs)

      Sets any additional JVM arguments for the compiler process. Defaults to the empty list.

    - #### excludeFromAntProperties

          protected boolean excludeFromAntProperties(String fieldName)

      Overrides:
        `excludeFromAntProperties` in class `AbstractOptions`