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/$
/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.
-
Hide
- i18nerror.zip
- 09/Jan/10 3:20 PM
- 269 kB
- Goran Ehrsson
-
- i18nerror/sampleApp/.classpath 0.7 kB
- i18nerror/sampleApp/.project 0.5 kB
- i18nerror/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- i18nerror/.../application.properties 0.2 kB
- i18nerror/sampleApp/.../BootStrap.groovy 0.1 kB
- i18nerror/sampleApp/.../BuildConfig.groovy 1 kB
- i18nerror/sampleApp/.../conf/Config.groovy 3 kB
- i18nerror/sampleApp/.../DataSource.groovy 0.6 kB
- i18nerror/sampleApp/.../resources.groovy 0.0 kB
- i18nerror/sampleApp/.../UrlMappings.groovy 0.2 kB
- i18nerror/.../SampleAppController.groovy 0.0 kB
- i18nerror/sampleApp/.../messages.properties 3 kB
- i18nerror/sampleApp/.../views/error.gsp 2 kB
- i18nerror/sampleApp/.../views/index.gsp 3 kB
- i18nerror/sampleApp/.../layouts/main.gsp 0.7 kB
- i18nerror/sampleApp/.../sampleApp/index.gsp 0.3 kB
- i18nerror/.../SampleAppControllerTests.groovy 0.2 kB
- i18nerror/sampleApp/web-app/css/main.css 5 kB
- i18nerror/sampleApp/.../images/favicon.ico 10 kB
- i18nerror/sampleApp/.../grails_logo.jpg 8 kB
- i18nerror/sampleApp/.../grails_logo.png 10 kB
- i18nerror/sampleApp/.../leftnav_btm.png 4 kB
- i18nerror/.../leftnav_midstretch.png 3 kB
- i18nerror/sampleApp/.../leftnav_top.png 3 kB
- i18nerror/sampleApp/.../database_add.png 0.6 kB
- i18nerror/sampleApp/.../database_delete.png 0.6 kB
- i18nerror/sampleApp/.../database_edit.png 0.7 kB
- i18nerror/sampleApp/.../database_save.png 0.7 kB
- i18nerror/sampleApp/.../database_table.png 0.7 kB
- i18nerror/sampleApp/.../skin/exclamation.png 0.7 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
fixed by http://github.com/grails/grails/commit/d97819d8daf38b25af2da14ae035fe993fe69a25