Is there an a way to initialise some data in a Plugin. I am modulizing my code and it would be nice to ha开发者_高级运维ve something like the bootstrap in the Plugin but I cannot find it. Nor can I find references using the Google.
BootStrap.groovy is excluded by default from a plugin zip, but you can create a MyPluginBootStrap.groovy (name doesn't matter, just can't be BootStrap) and that'll be packaged and run along with the application's BootStrap.
精彩评论