File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import org.springframework.core.io.FileSystemResourceLoader
2626import org.springframework.mock.web.MockServletContext
2727import org.springframework.web.context.WebApplicationContext
2828import org.springframework.mock.jndi.SimpleNamingContextBuilder
29+ import org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean
30+ import org.springframework.core.io.FileSystemResource
2931
3032
3133/**
@@ -51,6 +53,12 @@ target(loadApp:"Loads the Grails application object") {
5153 grailsResourceHolder = resourceHolder
5254 }
5355 grailsApplication(org.codehaus.groovy.grails.commons.DefaultGrailsApplication , ref(" grailsResourceLoader" ))
56+
57+ // There is a pluginManager variable in the binding
58+ delegate. " pluginManager" (GrailsPluginManagerFactoryBean ) {
59+ application = grailsApplication
60+ grailsDescriptor = new FileSystemResource (" web-app/WEB-INF/grails.xml" )
61+ }
5462 }
5563 }
5664
You can’t perform that action at this time.
0 commit comments