Details
Description
I'm developing a grails app split into several plugins. I have entries in BuildConfig.groovy to specify plugin locations.
grails.plugin.location.'sample-plugin'="../samplePlugin"
However, I cannot display i18n resources from the plugins. When I look in the created war, the messages.properties from plugins are missing.
I debugged and found out that _GrailsPackage.groovy copy resources to "$resourcesDirPath/plugins/${pluginDirName}/grails-app/i18n"
pluginDirName does not include plugin version number.
Then _GrailsWar.groovy copy resources from "$resourcesDirPath/plugins/${info.name}-${info.version}" but there is no such directory for in-place plugins.
For installed plugins the directory includes a version number and the copy operation works. But not for in-place plugins, they have no version number since pluginDirName is derived from the source directory.
This issue is related to GRAILS-5616 or maybe it's the same problem. Because I cannot get i18n messages from my plugins to display in run-app mode either.
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
fixed by http://github.com/grails/grails/commit/d97819d8daf38b25af2da14ae035fe993fe69a25