I have the resource bundle on the dependency list, but it fails on the SWF complaining about the "GlobalResourceBundle" resource bundle not being found. The only way to get both SWC and SWF to compile is... SWC with runtimeLocales and SWF with runtimeLocales (rather than l10n-swc-swf where SWC with runtimeLocales and SWF with compiledLocales).
From: [email protected] [mailto:[email protected]] On Behalf Of Marvin Froeder Sent: Tuesday, July 20, 2010 12:34 PM To: [email protected] Subject: Re: [flex-mojos] SWC Compiled Localization It needs the resource bundles on dependency list, just that. On Tue, Jul 20, 2010 at 1:33 PM, Will Hoover <[email protected]> wrote: Thanks for your help! I'm okay with using the default resource directory :o) One issue that I'm seeing is that the SWC is compiling fine with runtimeLocales, but the SWF is failing with compiledLocales. Does the SWF have to have the resource bundled copied from the SWC locales directory to a locales directory in the SWF? From: [email protected] [mailto:[email protected]] On Behalf Of Marvin Froeder Sent: Tuesday, July 20, 2010 12:19 PM To: [email protected] Subject: Re: [flex-mojos] SWC Compiled Localization Ops, my bad, I was sure you was using flexmojos 4.x, no idea why... That should work.... take a look on console to figure out what flexmojos is doing with <resourceBundlePath/> VELO On Tue, Jul 20, 2010 at 1:07 PM, Will Hoover <[email protected]> wrote: I'm using version 3.7.1 From: [email protected] [mailto:[email protected]] On Behalf Of Marvin Froeder Sent: Tuesday, July 20, 2010 11:35 AM To: [email protected] Subject: Re: [flex-mojos] SWC Compiled Localization Flexmojos 4.x has all features that 3.x has, but that doesn't mean it is fully backward compatible.... http://repository.sonatype.org/content/sites/flexmojos-site/4.0-alpha-4/comp ile-swc-mojo.html#localesSourcePath VELO On Tue, Jul 20, 2010 at 11:55 AM, Will Hoover <[email protected]> wrote: 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] <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] <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] <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] <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] <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] <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/
