@groovy.transform.CompileStatic class GroovyPageCompiler extends java.lang.Object
Used to compile GSP files into a specified target directory.
Type | Name and description |
---|---|
groovy.lang.GroovyClassLoader |
classLoader |
org.codehaus.groovy.control.CompilerConfiguration |
compilerConfig |
ConfigMap |
configMap |
java.lang.String[] |
configs |
java.lang.String |
encoding |
java.lang.String |
expressionCodec |
java.io.File |
generatedGroovyPagesDirectory |
GroovyPageInjectionOperation |
operation |
java.lang.String |
packagePrefix |
java.util.List<java.io.File> |
srcFiles |
java.io.File |
targetDir |
java.util.concurrent.ExecutorService |
threadPool |
java.lang.String |
viewPrefix |
java.io.File |
viewsDir |
Constructor and description |
---|
GroovyPageCompiler
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map |
compile() Compiles the given GSP pages and returns a Map of URI to classname mappings |
|
protected java.util.Map |
compileGSP(java.io.File viewsDir, java.io.File gspfile, java.lang.String viewPrefix, java.lang.String packagePrefix, java.util.Map compileGSPResults) Compiles an individual GSP file |
|
protected java.lang.Object |
generateJavaName(java.lang.String str) |
|
protected java.lang.String |
relativePath(java.io.File relbase, java.io.File file) |
|
void |
setCleanCompilerConfig(org.codehaus.groovy.control.CompilerConfiguration c) |
|
void |
setCompilerConfig(org.codehaus.groovy.control.CompilerConfiguration c) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Compiles the given GSP pages and returns a Map of URI to classname mappings
Compiles an individual GSP file
viewsDir
- The base directory that contains the GSP viewgspfile
- The actual GSP file referenceviewPrefix
- The prefix to use for the path to the viewpackagePrefix
- The package prefix to use which allows scoping for different applications and pluginsGroovy Documentation