Grails

i18n resources from in-place plugins are not included in war

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2 final
  • Fix Version/s: 1.2.1
  • Component/s: Plugins
  • Labels:
    None
  • Environment:
    Windows XP

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.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: