@CompileStatic class GroovyPageCompiler extends Object
Used to compile GSP files into a specified target directory.
| Constructor and description |
|---|
GroovyPageCompiler() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Map |
compile()Compiles the given GSP pages and returns a Map of URI to classname mappings |
|
protected Map |
compileGSP(File viewsDir, File gspfile, String viewPrefix, String packagePrefix, Map compileGSPResults)Compiles an individual GSP file |
|
protected Object |
generateJavaName(String str) |
|
protected String |
relativePath(File relbase, File file) |
|
void |
setCleanCompilerConfig(CompilerConfiguration c) |
|
void |
setCompilerConfig(CompilerConfiguration c) |
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