Used to compile GSP files into a specified target directory.
Type | Name and description |
---|---|
groovy.lang.GroovyClassLoader |
classLoader |
org.codehaus.groovy.control.CompilerConfiguration |
compilerConfig |
java.lang.String |
encoding |
java.io.File |
generatedGroovyPagesDirectory |
GroovyPageInjectionOperation |
operation |
java.lang.String |
packagePrefix |
java.util.List<java.io.File> |
srcFiles |
java.io.File |
targetDir |
java.lang.String |
viewPrefix |
java.io.File |
viewsDir |
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 void |
compileGSP(java.io.File viewsDir, java.io.File gspfile, java.lang.String viewPrefix, java.lang.String packagePrefix) 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 |
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 plugins