Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent to the Bootstrap class in a Plugin

Is there an a way to initialise some data in a Plugin. I am modulizing my code and it would be nice to have something like the bootstrap in the Plugin but I cannot find it. Nor can I find references using the Google.

like image 787
Scott Warren Avatar asked Jun 08 '10 02:06

Scott Warren


1 Answers

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.

like image 121
Burt Beckwith Avatar answered Oct 24 '22 00:10

Burt Beckwith