Here's my pom.xml for the swc containing the resources:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>dk.xxxx.flex</groupId>
<artifactId>flex-framework-resources</artifactId>
<packaging>swc</packaging>
<version>${release.version}</version>
<name>xxx.dk flex-framework-resources</name>
<url>http://xxx.dk/</url>
<parent>
<artifactId>project-parent</artifactId>
<groupId>dk.fioniabank</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<extensions>true</extensions>
<configuration>
<!--runtimeLocales>
<locale>en_US</locale>
</runtimeLocales-->
<compiledLocales>
<locale>en_US</locale>
</compiledLocales>
<mergeResourceBundle>false</mergeResourceBundle>
<resourceBundlePath>${basedir}/src/main/locales/{locale}</
resourceBundlePath>
</configuration>
</plugin>
</plugins>
</build>
</project>
My locale files are located in /src/main/locales/en_US/
containing:
- fionia_valdiators.properties
- validators.properties
On 10 Feb., 13:50, Marvin Froeder <[email protected]> wrote:
> You are doing something wrong on SWC compilation.
>
> VELO
>
> On Tue, Feb 10, 2009 at 10:43 AM, netphreak <[email protected]> wrote:
>
> > Hi Velo!
>
> > Great idea!
>
> > No - the rb.swc does not contain an fionia_validators.properties.
>
> > Now that's weird. How come?
>
> > On 10 Feb., 13:36, Marvin Froeder <[email protected]> wrote:
> > > Did you open your rb.swc and check if en_US stuff is there?
>
> > > VELO
>
> > > On Tue, Feb 10, 2009 at 10:30 AM, netphreak <[email protected]> wrote:
>
> > > > I tried using each one separate. Same result.
>
> > > > I got no idea, what I'm doing wrong...
>
> > > > On 10 Feb., 13:18, Marvin Froeder <[email protected]> wrote:
> > > > > <runtimeLocales>
> > > > > <locale>en_US</locale>
> > > > > </runtimeLocales>
> > > > > <compiledLocales>
> > > > > <locale>en_US</locale>
> > > > > </compiledLocales>
>
> > > > > Pick one.... may help.
>
> > > > > VELO
>
> > > > > On Tue, Feb 10, 2009 at 10:15 AM, netphreak <[email protected]>
> > wrote:
>
> > > > > > Hi Velo!
>
> > > > > > Yes, it does:
>
> > > > > > <build>
> > > > > > <plugins>
> > > > > > <plugin>
> > > > > > <groupId>info.flex-mojos</groupId>
>
> > > > <artifactId>flex-compiler-mojo</artifactId>
> > > > > > <configuration>
> > > > > > <runtimeLocales>
>
> > <locale>en_US</locale>
> > > > > > </runtimeLocales>
> > > > > > <compiledLocales>
>
> > <locale>en_US</locale>
> > > > > > </compiledLocales>
>
> > > > > > <mergeResourceBundle>true</mergeResourceBundle>
>
> > > > > > <resourceBundlePath>${basedir}/src/main/locales/{locale}</
> > > > > > resourceBundlePath>
> > > > > > </configuration>
>
> > > > > > </plugin>
> > > > > > </plugins>
> > > > > > </build>
>
> > > > > > On 10 Feb., 13:07, Marvin Froeder <[email protected]> wrote:
> > > > > > > Does this rb.swc contains en_US bundle?
>
> > > > > > > VELO
>
> > > > > > > On Tue, Feb 10, 2009 at 10:05 AM, netphreak <[email protected]>
> > > > wrote:
>
> > > > > > > > Hi All!
>
> > > > > > > > I'm having trouble compiling a module (swf), that depends on a
> > > > > > > > resource bundle.
>
> > > > > > > > I get the error: "Unable to resolve resource bundle
> > > > > > > > "fionia_validators" for locale "en_US".
>
> > > > > > > > I'm compiling using the flex-mojo v 2.0.3 and JDK 1.5.
>
> > > > > > > > My pom.xml
>
> > > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > <project xmlns="http://maven.apache.org/POM/4.0.0"
> > > > xmlns:xsi="http://
> > > > > > > >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
>
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd
> > > > ">
> > > > > > > > <modelVersion>4.0.0</modelVersion>
> > > > > > > > <groupId>dk.xxxxxx.flex</groupId>
> > > > > > > > <artifactId>flex-sas-reports</artifactId>
> > > > > > > > <packaging>swf</packaging>
> > > > > > > > <version>${release.version}</version>
> > > > > > > > <name>xxxxxx.dk flex-sas-reports</name>
> > > > > > > > <url>http://xxxxx.dk/</url>
>
> > > > > > > > <parent>
> > > > > > > > <artifactId>project-parent</artifactId>
> > > > > > > > <groupId>dk.xxxxxx</groupId>
> > > > > > > > <version>1.0-SNAPSHOT</version>
> > > > > > > > </parent>
>
> > > > > > > > <build>
> > > > > > > > <plugins>
> > > > > > > > <plugin>
>
> > <groupId>info.flex-mojos</groupId>
>
> > > > > > <artifactId>flex-compiler-mojo</artifactId>
> > > > > > > > <extensions>true</extensions>
> > > > > > > > <configuration>
> > > > > > > > </configuration>
> > > > > > > > </plugin>
> > > > > > > > </plugins>
> > > > > > > > </build>
>
> > > > > > > > <dependencies>
> > > > > > > > <dependency>
> > > > > > > > <groupId>dk.fioniabank.flex</groupId>
> > > > > > > > <artifactId>flex-framework</artifactId>
> > > > > > > > <version>${release.version}</version>
> > > > > > > > <type>swc</type>
> > > > > > > > </dependency>
> > > > > > > > <dependency>
> > > > > > > > <groupId>dk.fioniabank.flex</groupId>
>
> > > > > > <artifactId>flex-framework-resources</artifactId>
> > > > > > > > <version>${release.version}</version>
> > > > > > > > <type>rb.swc</type>
> > > > > > > > </dependency>
> > > > > > > > </dependencies>
>
> > > > > > > > </project>
>
> > > > > > > > Am I missing something?
>
> > > > > > > > Kindly Regards
> > > > > > > > Netphreak
--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en
http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---