Bill, I'd recommend posting this question to the Flexmojos user list. Here's a link to:
http://groups.google.com/group/flex-mojos/topics Tim On Mon, May 16, 2011 at 10:31 PM, sg057052 <[email protected]> wrote: > I followed an example on a flexmojos site at > https://docs.sonatype.org/display/FLEXMOJOS/Application+Localization to > add > my Language.properties to a library project. The Language.properties file > was not in the standard location, so I added <resourceBundlePath> to the > SWC > maven POM: > > Multi-Module SWC Localization > If you are using a multi-module maven project that uses a SWC with > localization and a SWF that uses the SWC there are a few options: > Use runtimeLocales in your SWC and add the Resource Bundle as a dependency > in your SWF for each of your supported locales: SWC POM > <build> > <plugins> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > <configuration> > > <runtimeLocales><locale>en_US</locale></runtimeLocales> > <resourceBundlePath> > > ${basedir}/src/main/flex/locales/{locale} > </resourceBundlePath> > </configuration> > </plugin> > </plugins> > </build> > > The project compiles fine and creates the 2 SWC files. > > > The Application project (SWF) does not compile because it says it cannot > find the Language resource bundle. > > SWF POM > <dependencies> > <dependency> > <groupId>com.example</groupId> > <artifactId>example-swc</artifactId> > <version>${project.version}</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.example</groupId> > <artifactId>example-swc</artifactId> > <version>${project.version}</version> > <type>rb.swc</type> > <classifier>en_US</classifier> > </dependency> > </dependencies> > > > Does the Application POM also need to have a change to it to know the path > of the RB? > > > The Applications main MXML file has: > <mx:Metadata> > [ResourceBundle("Language")] > </mx:Metadata> > Does this need to change at all? > > Thanks to all for your help! > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Flex-3-with-Maven-Resource-bundles-in-SWC-not-available-in-app-tp4402522p4402522.html > Sent from the Maven Developers mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
