Our project structure is similar in that we have a swf module and a swc
module.
I tried to mimic the project poms from the link you supplied. I moved
"${basedir}/src/main/resources/locale/en_US/GlobalResourceBundle.properties"
to "${basedir}/src/locales/en_US/GlobalResourceBundle.properties" in the
SWC...
...added the following to SWC:
<configuration>
<runtimeLocales>
<locale>en_US</locale>
</runtimeLocales>
</configuration>
... and the following to the SWF:
<configuration>
<compiledLocales>
<locale>en_US</locale>
</compiledLocales>
</configuration>
This works, but shouldn't adding
"<resourceBundlePath>${basedir}/src/main/resources/locale/{locale}</resource
BundlePath>" to the plug-in configuration override the location of the
bundle(s) instead of using ""${basedir}/src/locales/..."?
From: [email protected] [mailto:[email protected]] On
Behalf Of Marvin Froeder
Sent: Tuesday, July 20, 2010 10:28 AM
To: [email protected]
Subject: Re: [flex-mojos] SWC Compiled Localization
Does this sample works?
http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-har
ness/projects/concept/l10n-swc-swf/
VELO
On Tue, Jul 20, 2010 at 11:23 AM, Will Hoover <[email protected]>
wrote:
We have a resource bundle...
${basedir}/src/main/resources/locale/en_US/GlobalResourceBundle.properties
...in which we reference as...
resourceManager.getString('GlobalResourceBundle', 'some.property');
...following the compiled localization for flexmojos 3.7.1 found at
https://docs.sonatype.org/display/FLEXMOJOS/Application+Localization we
have...
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<sourcePaths>
<sourcePath>${project.build.sourceDirectory}</sourcePath>
</sourcePaths>
<includeSources>
<includeSource>${project.build.sourceDirectory}</includeSource>
</includeSources>
<resourceBundlePath>${basedir}/src/main/resources/locale/{locale}</resourceB
undlePath>
<compiledLocales>
<locale>en_US</locale>
</compiledLocales>
</configuration>
</plugin>
</plugins>
</build>
...but we get the following error:
[ERROR] could not find source for resource bundle GlobalResourceBundle.
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
<mailto:flex-mojos%[email protected]>
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/