Grails如何引用开发中的插件

即使没有被安装,Grails也可以引用文件系统中的任何插件。具体方法是:在grails-app/conf/BuildConfig.groovy文件中增加:

// Useful to test plugins you are developing.
grails.plugin.location.shiro =
        "/home/dilbert/dev/plugins/grails-shiro"// Useful for modular applications where all plugins and
// applications are in the same directory.
grails.plugin.location.'grails-ui' = "../grails-grails-ui"


通常在以下两种情形较为有用:
  • 引用开发中的插件
  • 使用Grails最佳实践-将应用划分为一组在“超级项目”下的“一组插件”

猜你喜欢

转载自bruce-lin-chn-sina-cn.iteye.com/blog/1286282