From 889991fc89c371492ad9d81c794758b942f571b6 Mon Sep 17 00:00:00 2001 From: Luke Daley Date: Tue, 27 Jul 2010 17:57:48 +1000 Subject: [PATCH] GRAILS-6548 - configure up the plugin manager bean when bootstrapping the app. (the corresponding test for this is in the testing-tests project as the negative effect only manifests in integration tests) --- scripts/_GrailsBootstrap.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/_GrailsBootstrap.groovy b/scripts/_GrailsBootstrap.groovy index 4f741a53df6..e3247ff45fc 100644 --- a/scripts/_GrailsBootstrap.groovy +++ b/scripts/_GrailsBootstrap.groovy @@ -26,6 +26,8 @@ import org.springframework.core.io.FileSystemResourceLoader import org.springframework.mock.web.MockServletContext import org.springframework.web.context.WebApplicationContext import org.springframework.mock.jndi.SimpleNamingContextBuilder +import org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean +import org.springframework.core.io.FileSystemResource /** @@ -51,6 +53,12 @@ target(loadApp:"Loads the Grails application object") { grailsResourceHolder = resourceHolder } grailsApplication(org.codehaus.groovy.grails.commons.DefaultGrailsApplication, ref("grailsResourceLoader")) + + // There is a pluginManager variable in the binding + delegate."pluginManager"(GrailsPluginManagerFactoryBean) { + application = grailsApplication + grailsDescriptor = new FileSystemResource("web-app/WEB-INF/grails.xml") + } } }