I can make it include the files, by making a mxml file:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
backgroundColor="#ffffff" layout="absolute" verticalAlign="top">

<mx:Script>
        <![CDATA[
                import mx.resources.ResourceBundle;
                [ResourceBundle("fionia_validators")]
                [ResourceBundle("validators")]
                var test:ResourceBundle;
        ]]>
</mx:Script>

</mx:Application>

So something is missing in the maven plugin for handling this.


On 10 Feb., 15:10, Marvin Froeder <[email protected]> wrote:
> Hrmmmm
>
> On Tue, Feb 10, 2009 at 11:56 AM, netphreak <[email protected]> wrote:
>
> > All i did was set the main source folder to src\main
>
> > And select the locales folder as an asset in flex builder.
>
> Have no idea how flexbuilder map locales folder into locales... but I guess
> I can do that either....
>
> For now, use 
> this:http://docs.flex-mojos.info/flex-compiler-mojo/compile-swc-mojo.html#...
>
> If you think is a good idea, open an improvement ticket related to that,
> then I will try to find a way to get flexmojos automatically settings
> resource-bundles.
>
> VELO
>
>
>
> > Hmm.
>
> > On 10 Feb., 14:43, Marvin Froeder <[email protected]> wrote:
> > > So you did something on flexbuilder that you are not doing on
> > flexmojos....
> > > just need to figure out what.
>
> > > VELO
>
> > > On Tue, Feb 10, 2009 at 11:42 AM, netphreak <[email protected]> wrote:
>
> > > > Yes, it was tested to work in flexbuilder.
>
> > > > On 10 Feb., 14:42, Marvin Froeder <[email protected]> wrote:
> > > > > Did you was able to get that working on flexbuilder?
>
> > > > > VELO
>
> > > > > On Tue, Feb 10, 2009 at 11:40 AM, netphreak <[email protected]>
> > wrote:
>
> > > > > > What do you mean by referenced?
>
> > > > > > On 10 Feb., 14:23, Marvin Froeder <[email protected]> wrote:
> > > > > > > Stupid question... are your files referenced any time on your
> > > > library?
>
> > > > > > > VELO
>
> > > > > > > On Tue, Feb 10, 2009 at 11:21 AM, netphreak <[email protected]>
> > > > wrote:
>
> > > > > > > > Only:
>
> > > > > > > > containers.properties
> > > > > > > > core.properties
> > > > > > > > effects.properties
> > > > > > > > skins.properties
> > > > > > > > styles.properties
>
> > > > > > > > missing my own files:
> > > > > > > > validators.properties
> > > > > > > > fionia_validators.properties
>
> > > > > > > > On 10 Feb., 14:17, Marvin Froeder <[email protected]> wrote:
> > > > > > > > > You openned flex-framework-resources-${version}-en_US.rb.swc
> > and
> > > > has
> > > > > > no
> > > > > > > > > localization stuff on it?!
>
> > > > > > > > > VELO
>
> > > > > > > > > On Tue, Feb 10, 2009 at 11:15 AM, netphreak <
> > [email protected]>
> > > > > > wrote:
>
> > > > > > > > > > Same result:
>
> > > > > > > > > > My pom.xml now:
>
> > > > > > > > > > <?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.xxx.flex</groupId>
> > > > > > > > > >         <artifactId>flex-framework-resources</artifactId>
> > > > > > > > > >        <packaging>swc</packaging>
> > > > > > > > > >        <version>${release.version}</version>
> > > > > > > > > >        <name>xxx.dk flex-framework-resources</name>
> > > > > > > > > >         <url>http://xxxx.dk/</url>
>
> > > > > > > > > >        <parent>
> > > > > > > > > >                <artifactId>project-parent</artifactId>
> > > > > > > > > >                 <groupId>dk.xxx</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>
>
> > > > > > > > > >  <resourceBundlePath>${basedir}/src/main/locales/{locale}</
> > > > > > > > > > resourceBundlePath>
> > > > > > > > > >                                </configuration>
> > > > > > > > > >                        </plugin>
> > > > > > > > > >                </plugins>
> > > > > > > > > >        </build>
> > > > > > > > > > </project>
>
> > > > > > > > > > On 10 Feb., 14:08, Marvin Froeder <[email protected]>
> > wrote:
> > > > > > > > > > > Use runtimeLocales only.
> > > > > > > > > > > Remove mergeResourceBundle
> > > > > > > > > > > You use default resourceBundlePath, so is not necessary
> > to
> > > > > > declare
> > > > > > > > it.
>
> > > > > > > > > > > VELO
>
> > > > > > > > > > > On Tue, Feb 10, 2009 at 11:00 AM, netphreak <
> > > > [email protected]>
> > > > > > > > wrote:
>
> > > > > > > > > > > > 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.0http://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}</
>
> ...
>
> læs mere »
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to