Package org.gradle.api.tasks.compile
Class ForkOptions
java.lang.Object
org.gradle.api.tasks.compile.AbstractOptions
org.gradle.api.tasks.compile.BaseForkOptions
org.gradle.api.tasks.compile.ProviderAwareCompilerDaemonForkOptions
org.gradle.api.tasks.compile.ForkOptions
- All Implemented Interfaces:
Serializable
Fork options for Java compilation. Only take effect if
CompileOptions.fork
is true
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the compiler executable to be used.Deprecated.Returns the directory used for temporary files that may be created to pass command line arguments to the compiler process.void
setExecutable
(String executable) Sets the compiler executable to be used.void
setJavaHome
(File javaHome) Deprecated.void
setTempDir
(String tempDir) Sets the directory used for temporary files that may be created to pass command line arguments to the compiler process.Methods inherited from class org.gradle.api.tasks.compile.ProviderAwareCompilerDaemonForkOptions
getAllJvmArgs, getJvmArgumentProviders
Methods inherited from class org.gradle.api.tasks.compile.BaseForkOptions
getJvmArgs, getMemoryInitialSize, getMemoryMaximumSize, setJvmArgs, setMemoryInitialSize, setMemoryMaximumSize
Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions
define
-
Constructor Details
-
ForkOptions
public ForkOptions()
-
-
Method Details
-
getExecutable
Returns the compiler executable to be used.Only takes effect if
CompileOptions.fork
istrue
. Defaults tonull
.Setting the executable disables task output caching.
-
setExecutable
Sets the compiler executable to be used.Only takes effect if
CompileOptions.fork
istrue
. Defaults tonull
.Setting the executable disables task output caching.
-
getJavaHome
Deprecated.Returns the Java home which contains the compiler to use.Only takes effect if
CompileOptions.fork
istrue
. Defaults tonull
.- Since:
- 3.5
-
setJavaHome
Deprecated.Sets the Java home which contains the compiler to use.Only takes effect if
CompileOptions.fork
istrue
. Defaults tonull
.- Since:
- 3.5
-
getTempDir
Returns the directory used for temporary files that may be created to pass command line arguments to the compiler process. Defaults tonull
, in which case the directory will be chosen automatically. -
setTempDir
Sets the directory used for temporary files that may be created to pass command line arguments to the compiler process. Defaults tonull
, in which case the directory will be chosen automatically.
-