Skip to content

Commit

Permalink
GRAILS-6548 - configure up the plugin manager bean when bootstrapping…
Browse files Browse the repository at this point in the history
… the app.

(the corresponding test for this is in the testing-tests project as the negative effect only manifests in integration tests)
  • Loading branch information
ldaley committed Jul 27, 2010
1 parent b1fc5d7 commit 889991f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/_GrailsBootstrap.groovy
Expand Up @@ -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


/**
Expand All @@ -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")
}
}
}

Expand Down

0 comments on commit 889991f

Please sign in to comment.