@groovy.transform.CompileStatic class GrailsGspCompileStaticProvider extends java.lang.Object implements CommandLineArgumentProvider
Publishes the grails { compileStatic { gsp }} opt-in to a forked JVM as the
BuildSettings#COMPILE_STATIC_GSP#COMPILE_STATIC_GSP system property.
Applied to the JVM that compiles pages ahead of time and to the JVM that runs the application, which compiles a page again when it changes. Both read the setting under the name it carries in configuration, so a page compiles the same way whichever compiled it.
The lazy GrailsCompileStaticOptions property is read in asArguments (when the task runs, not when it is configured). The effective value is also exposed as an Input getter so that toggling the flag invalidates the task.
| Constructor and description |
|---|
GrailsGspCompileStaticProvider(GrailsCompileStaticOptions compileStatic) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Iterable<java.lang.String> |
asArguments() |
|
boolean |
isCompileStaticGsp() |
|
boolean |
isStrict()Strictness only reaches the compiler where pages are compiled statically, so it is reported as false while that is off. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Strictness only reaches the compiler where pages are compiled statically, so it is reported as false while that is off. Reporting the raw flag would make toggling it invalidate the task without changing anything it produces.