Fixed class loading bug.
This commit is contained in:
parent
8b7ffd64f8
commit
f514bc533f
@ -57,6 +57,11 @@ public class DefaultWebViewComponentTemplateCompiler
|
||||
);
|
||||
compileUnit.getGroovyCompilationUnit().addSource(sourceUnit);
|
||||
|
||||
// set the groovy compile unit's class loader to the configuration's classloader.
|
||||
compileUnit.getGroovyCompilationUnit().setClassLoader(
|
||||
this.configuration.getGroovyClassLoader()
|
||||
);
|
||||
|
||||
// compile groovy
|
||||
try {
|
||||
compileUnit.getGroovyCompilationUnit().compile(this.configuration.getToCompilePhase().getPhaseNumber());
|
||||
|
Loading…
Reference in New Issue
Block a user