I think it's best not to specify the resourceBundleNames property.
Here is a sample of a pom file that compile a toto.properties file
into 2 locales
<build>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<id>compile-toto-l10n-swf</id>
<phase>compile</phase>
<goals>
<goal>compile-swf</goal>
</goals>
<configuration>
<localesCompiled>
<locale>en_US</locale>
<locale>fr_FR</locale>
</localesCompiled>
</configuration>
</execution>
</executions>
<configuration>
<includeResourceBundles>
<bundle>toto</bundle>
</includeResourceBundles>
<keepAllTypeSelectors>true</keepAllTypeSelectors>
<localesSourcePath>${basedir}/src/main/locales/{locale}</
localesSourcePath>
<localesRuntime>
<locale>en_US</locale>
<locale>fr_FR</locale>
</localesRuntime>
</configuration>
</plugin>
</plugins>
</build>
On Dec 20, 10:01 am, rivendels <[email protected]> wrote:
> Hello,
> I have a problem with compiling runtime locales with FM 4.0-RC2.
>
> I got the following configuration of the flexmojos-maven-plugin:
> <localesSourcePath>${basedir}/src/main/locales/{locale}</
> localesSourcePath>
> <localesRuntime>
> <runtime>en_US</runtime>
> </localesRuntime>
> <resourceBundleNames>{locale}</resourceBundleNames>
>
> in my locales directory i have only one properties file:
> test.properties
> resource swf is compiling however when i want to load it at runtime I
> get the following error:
>
> Error: Could not find compiled resource bundle 'logging' for locale
> 'en_US'.
>
> I already defined in my root Application file the resource bundle:
> <fx:Metadata>
> [ResourceBundle("test")]
> </fx:Metadata>
>
> When I'm compiling bundle with Ant everything works without problems.
>
> is there any option that would help me to solve this problem.
> Maybe different version of FM ?
>
> I would appreciate any help with this problem as I'm stuck on this.
--
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/