open class GroovyCompileOptions : AbstractOptions
Compilation options to be passed to the Groovy compiler.
GroovyCompileOptions()
Compilation options to be passed to the Groovy compiler. |
open fun fork(forkArgs: MutableMap<String, Any>): GroovyCompileOptions
Convenience method to set GroovyForkOptions with named parameter syntax. Calling this method will set |
|
open fun getConfigurationScript(): File
A Groovy script file that configures the compiler, allowing extensive control over how the code is compiled. The script is executed as Groovy code, with the following context:
This facilitates the following pattern:
For example, to activate type checking for all Groovy classes…
Please see the Groovy compiler customization builder documentation for more information about the compiler configuration DSL. This feature is only available if compiling with Groovy 2.1 or later. |
|
open fun getEncoding(): String
Tells the source encoding. Defaults to |
|
open fun getFileExtensions(): MutableList<String>
Returns the list of acceptable source file extensions. Only takes effect when compiling against Groovy 1.7 or higher. Defaults to |
|
open fun getForkOptions(): GroovyForkOptions
Returns options for running the Groovy compiler in a separate process. These options only take effect if |
|
open fun getOptimizationOptions(): MutableMap<String, Boolean>
Returns optimization options for the Groovy compiler. Allowed values for an option are Known options are: indy Use the invokedynamic bytecode instruction. Requires JDK7 or higher and Groovy 2.0 or higher. Disabled by default. int Optimize operations on primitive types (e.g. integers). Enabled by default. all Enable or disable all optimizations. Note that some optimizations might be mutually exclusive. |
|
open fun getStubDir(): File
Returns the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. Defaults to |
|
open fun isFailOnError(): Boolean
Tells whether the compilation task should fail if compile errors occurred. Defaults to |
|
open fun isFork(): Boolean
Tells whether to run the Groovy compiler in a separate process. Defaults to |
|
open fun isJavaAnnotationProcessing(): Boolean
Whether the Groovy code should be subject to Java annotation processing. Annotation processing of Groovy code works by having annotation processors visit the Java stubs generated by the Groovy compiler in order to support joint compilation of Groovy and Java source. When set to When this option is set to |
|
open fun isKeepStubs(): Boolean
Tells whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed. Useful for joint compilation debugging purposes. Defaults to |
|
open fun isListFiles(): Boolean
Tells whether to print which source files are to be compiled. Defaults to |
|
open fun isVerbose(): Boolean
Tells whether to turn on verbose output. Defaults to |
|
open fun optionMap(): MutableMap<String, Any>
Internal method. |
|
open fun setConfigurationScript(configurationFile: File): Unit
Sets the path to the groovy configuration file. |
|
open fun setEncoding(encoding: String): Unit
Sets the source encoding. Defaults to |
|
open fun setFailOnError(failOnError: Boolean): Unit
Sets whether the compilation task should fail if compile errors occurred. Defaults to |
|
open fun setFileExtensions(fileExtensions: MutableList<String>): Unit
Sets the list of acceptable source file extensions. Only takes effect when compiling against Groovy 1.7 or higher. Defaults to |
|
open fun setFork(fork: Boolean): Unit
Sets whether to run the Groovy compiler in a separate process. Defaults to |
|
open fun setForkOptions(forkOptions: GroovyForkOptions): Unit
Sets options for running the Groovy compiler in a separate process. These options only take effect if |
|
open fun setJavaAnnotationProcessing(javaAnnotationProcessing: Boolean): Unit
Sets whether Java annotation processors should process annotations on stubs. Defaults to |
|
open fun setKeepStubs(keepStubs: Boolean): Unit
Sets whether Java stubs for Groovy classes generated during Java/Groovy joint compilation should be kept after compilation has completed. Useful for joint compilation debugging purposes. Defaults to |
|
open fun setListFiles(listFiles: Boolean): Unit
Sets whether to print which source files are to be compiled. Defaults to |
|
open fun setOptimizationOptions(optimizationOptions: MutableMap<String, Boolean>): Unit
Sets optimization options for the Groovy compiler. Allowed values for an option are |
|
open fun setStubDir(stubDir: File): Unit
Sets the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint compilation. Defaults to |
|
open fun setVerbose(verbose: Boolean): Unit
Sets whether to turn on verbose output. Defaults to |
open fun define(args: MutableMap<String, Any>): Unit |