Skip to content

Commit 889991f

Browse files
committed
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)
1 parent b1fc5d7 commit 889991f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/_GrailsBootstrap.groovy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import org.springframework.core.io.FileSystemResourceLoader
2626
import org.springframework.mock.web.MockServletContext
2727
import org.springframework.web.context.WebApplicationContext
2828
import 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

0 commit comments

Comments
 (0)