简体   繁体   中英

Grails: Using the Resources plugin in a plugin

I'm trying to use the Resources plugin ( http://grails.org/plugin/resources ) in a plugin that I'm developing, however, I can't seem to get it to work. I keep getting error messages that the module (defined in the ApplicationResources.groovy file) doesn't exist when it tries to render the gsp file. Only if I add the module to the Grails application's (that my plugin is being used in) ApplicationResources.groovy file does this error message go away. Clearly the Resources plugin is only looking at the application files, and not the plugin files. Is this a known issue? Is there a solution or work around to be able to use the Resources plugin in a plugin?

我只是将ApplicationResources.groovy文件重命名为MyPluginResources.groovy(其中MyPlugin是插件的名称),问题就消失了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM