Class ForkOptions

All Implemented Interfaces:
Serializable

public abstract class ForkOptions extends ProviderAwareCompilerDaemonForkOptions
Fork options for Java compilation. Only take effect if CompileOptions.fork is true.
See Also:
  • Constructor Details

    • ForkOptions

      public ForkOptions()
  • Method Details

    • getExecutable

      @Nullable @Optional @Input public String getExecutable()
      Returns the compiler executable to be used.

      Only takes effect if CompileOptions.fork is true. Defaults to null.

      Setting the executable disables task output caching.

    • setExecutable

      public void setExecutable(@Nullable String executable)
      Sets the compiler executable to be used.

      Only takes effect if CompileOptions.fork is true. Defaults to null.

      Setting the executable disables task output caching.

    • getJavaHome

      @Deprecated @Internal @Nullable public File getJavaHome()
      Deprecated.
      Returns the Java home which contains the compiler to use.

      Only takes effect if CompileOptions.fork is true. Defaults to null.

      Since:
      3.5
    • setJavaHome

      @Deprecated public void setJavaHome(@Nullable File javaHome)
      Deprecated.
      Sets the Java home which contains the compiler to use.

      Only takes effect if CompileOptions.fork is true. Defaults to null.

      Since:
      3.5
    • getTempDir

      @Internal @Nullable public String getTempDir()
      Returns the directory used for temporary files that may be created to pass command line arguments to the compiler process. Defaults to null, in which case the directory will be chosen automatically.
    • setTempDir

      public void setTempDir(@Nullable String tempDir)
      Sets the directory used for temporary files that may be created to pass command line arguments to the compiler process. Defaults to null, in which case the directory will be chosen automatically.