You don't understood the part of many configurations got renamed....  check
maven docs.

VELO

On Mon, Oct 18, 2010 at 11:23 AM, Antoine <[email protected]> wrote:

> I fully understand that FM4 is not a drop replacement for FM3.
> However, can you tell me what you meant by:
>
> > You didn't configured any locale....
>
> If it means something, please tell me what.  If it means nothing, I
> won't mind.
>
> In the meanwhile, I'll check the l10n project.
>
>
> On Oct 18, 8:26 pm, Marvin Froeder <[email protected]> wrote:
> > Grab flexmojos sources from github, there is an l10n project inside
> > test-harness project.
> >
> > I will say one more time, FM4 is not a drop in replacement for FM3.
>  Check
> > docs.  Some configurations got removed, other add, many renamed.
> >
> >
> >
> > On Mon, Oct 18, 2010 at 9:01 AM, Antoine <[email protected]>
> wrote:
> > > What did you mean by "configure a locale"?
> >
> > > See the following lines in the pom file:
> > >            <compiledLocales>
> > >              <locale>en_US</locale>
> > >              <locale>fr_FR</locale>
> > >           </compiledLocales>
> >
> > > The error shows that mxmlc is looking for a locale but does not find
> > > the path to it.
> > > If I did not configure a locale, mxmlc would not be looking for it.
> >
> > > You said:
> > > > All ITs do work fine
> > > Could you point me to an IT which specifically tests localized
> > > application?  I could inspire myself from it.
> >
> > > On Oct 18, 7:32 am, Marvin Froeder <[email protected]> wrote:
> > > > You didn't configured any locale....
> >
> > > > On Sun, Oct 17, 2010 at 8:31 PM, Antoine <[email protected]>
> > > wrote:
> > > > > Here is my pom file:
> >
> > > > > <?xml version="1.0"?>
> > > > > <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>com.palantiris.sandbox</groupId>
> > > > >  <artifactId>mvn3</artifactId>
> > > > >  <version>continuous-SNAPSHOT</version>
> > > > >  <packaging>swf</packaging>
> > > > >  <name>mvn3</name>
> >
> > > > >   <properties>
> > > > >      <flex-version>4.1.0.16076</flex-version>
> > > > >
>  <flexmojos-plugin-version>4.0-beta-1</flexmojos-plugin-version>
> > > > >   </properties>
> >
> > > > >  <build>
> > > > >    <finalName>mvn3</finalName>
> > > > >    <sourceDirectory>src/main/flex</sourceDirectory>
> > > > >    <plugins>
> > > > >      <plugin>
> > > > >        <groupId>org.sonatype.flexmojos</groupId>
> > > > >        <artifactId>flexmojos-maven-plugin</artifactId>
> > > > >        <version>${flexmojos-plugin-version}</version>
> > > > >        <dependencies>
> > > > >          <dependency>
> > > > >            <groupId>com.adobe.flex</groupId>
> > > > >            <artifactId>compiler</artifactId>
> > > > >            <version>${flex-version}</version>
> > > > >            <type>pom</type>
> > > > >          </dependency>
> > > > >        </dependencies>
> > > > >        <extensions>true</extensions>
> > > > >        <configuration>
> > > > >           <skipTests>false</skipTests>
> > > > >           <debug>true</debug>
> > > > >           <mergeResourceBundle>true</mergeResourceBundle>
> > > > >           <keepGeneratedActionscript>false</
> > > > > keepGeneratedActionscript>
> > > > >           <encoding>UTF-8</encoding>
> > > > >           <incremental>false</incremental>
> > > > >           <localesSourcePath>${basedir}/src/main/locales/{locale}</
> > > > > localesSourcePath>
> > > > >           <compiledLocales>
> > > > >              <locale>en_US</locale>
> > > > >              <locale>fr_FR</locale>
> > > > >           </compiledLocales>
> > > > >           <configurationReport>true</configurationReport>
> > > > >        </configuration>
> > > > >      </plugin>
> >
> > > > >    </plugins>
> > > > >  </build>
> >
> > > > >  <dependencies>
> > > > >      <dependency>
> > > > >         <groupId>com.adobe.flex.framework</groupId>
> > > > >         <artifactId>flex-framework</artifactId>
> > > > >         <version>${flex-version}</version>
> > > > >         <type>pom</type>
> > > > >      </dependency>
> > > > >      <dependency>
> > > > >         <groupId>org.sonatype.flexmojos</groupId>
> > > > >         <artifactId>flexmojos-unittest-support</artifactId>
> > > > >         <version>${flexmojos-plugin-version}</version>
> > > > >         <exclusions>
> > > > >           <exclusion>
> > > > >             <groupId>com.adobe.flex.framework</groupId>
> > > > >             <artifactId>playerglobal</artifactId>
> > > > >           </exclusion>
> > > > >           <exclusion>
> > > > >             <groupId>com.adobe.flex.framework</groupId>
> > > > >             <artifactId>framework</artifactId>
> > > > >           </exclusion>
> > > > >         </exclusions>
> > > > >         <type>swc</type>
> > > > >      </dependency>
> > > > >  </dependencies>
> >
> > > > >  <repositories>
> > > > >    <repository>
> > > > >      <id>flexmojos</id>
> > > > >      <url>http://repository.sonatype.org/content/groups/flexgroup/
> </
> > > > > url>
> > > > >    </repository>
> > > > >  </repositories>
> >
> > > > > </project>
> >
> > > > > The project structure is:
> > > > > mvn3/
> > > > >    src/
> > > > >        main/
> > > > >            flex/
> > > > >                Main.mxml
> > > > >            locales/
> > > > >                en_US/
> > > > >                    example.properties
> > > > >                fr/FR
> > > > >                    example.properties
> >
> > > > > Main.mxml
> >
> > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > <mx:Application
> > > > >    xmlns:mx="http://www.adobe.com/2006/mxml";>
> > > > >    <mx:Label text="@Resource(bundle='example', key='Hello_World')"
> />
> > > > > </mx:Application>
> >
> > > > > On Oct 18, 7:25 am, Marvin Froeder <[email protected]> wrote:
> > > > > > All ITs do work fine, so I assume you are doing something
> wrong....
> > >  any
> > > > > > details?!
> >
> > > > > > On Sun, Oct 17, 2010 at 8:22 PM, Antoine <
> [email protected]>
> > > > > wrote:
> > > > > > > OK, I thought FM4 was backward compatible.  Do you have a
> migration
> > > > > > > guide from FM3 to MF4?
> >
> > > > > > > I have checked the doc, and I found "localesSourcePath", which
> > > seems
> > > > > > > to supersede "resourceBundlePath".
> > > > > > > I have explicitly defined it, but it still doesn't work.
>  Locale
> > > path
> > > > > > > is not added to my source path.
> >
> > > > > > > Does someone have a successful example of building localized
> Flex
> > > code
> > > > > > > with FM4?
> >
> > > > > > > On Oct 17, 10:27 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > > > FM4 is not a drop in replacement for FM3....
> >
> > > > > > > > Many configurations got renamed, others removed and many
> others
> > > > > added.
> >
> > > > > > > > On Sun, Oct 17, 2010 at 10:25 AM, Antoine <
> > > [email protected]
> >
> > > > > > > wrote:
> > > > > > > > > I don't know what you mean by "configure it".  What I
> notice
> > > is:
> > > > > the
> > > > > > > > > exact same pom file works for Flexmojos 3.8 and not
> Flexmojos
> > > 4.0.
> >
> > > > > > > > > If you mean: explicitly set resourceBundlePath, I don't
> think
> > > it is
> > > > > > > > > needed, because the default value is
> src/main/locales/{locale}
> > > > > > > > > (In Flexmojos 3.8, it works without defining it explicitly)
> >
> > > > > > > > > However, I just tried to define it explicitly:
> > > > > > > > >           <resourceBundlePath>src/main/locales/{locale}</
> > > > > > > > > resourceBundlePath>
> > > > > > > > > and it did not work either.
> >
> > > > > > > > > On Oct 17, 9:02 pm, Marvin Froeder <[email protected]>
> wrote:
> > > > > > > > > > did you configure it?
> >
> > > > > > > > > > Sent from DROID
> >
> > > > > > > > > > Em 17/10/2010 03:29, "Antoine" <
> [email protected]
> > > > > >escreveu:
> >
> > > > > > > > > > I tried Flexmojos 4.0 today, with Maven 3.0, and I got a
> > > strange
> > > > > > > error
> > > > > > > > > > regarding localization:
> >
> > > > > > > > > > Error: unable to resolve bundle "example" for locale
> "en_US".
> >
> > > > > > > > > > I tried the exact same project with Flexmojos 3.8 (and
> Maven
> > > 3.0)
> > > > > and
> > > > > > > > > > the build is successful.
> > > > > > > > > > I then ran "mvn -X install" and checked the detailed
> output,
> > > and
> > > > > I
> > > > > > > > > > found the following anomaly:
> > > > > > > > > > With Flexmojos 4.0, the "compiler.source-path" option
> only
> > > > > contains
> > > > > > > > > > the path to my sources, while with Flexmojos 3.8, it also
> > > > > contains
> > > > > > > the
> > > > > > > > > > path to my locales.
> >
> > > > > > > > > > Flexmojos 4.0:
> > > > > > > > > > -compiler.source-path=C:\...\src\main\flex
> >
> > > > > > > > > > Flexmojos 3.8:
> > > > > > > > > > -compiler.source-path C:\...\src\main\flex
> > > > > C:\...\src\main\locales\
> > > > > > > > > > {locale}
> >
> > > > > > > > > > It seems like Flexmojos 4.0 forgets to add
> > > ${resourceBundlePath}
> > > > > to
> > > > > > > > > > the "compiler.source-path" option...
> >
> > > > > > > > > > --
> > > > > > > > > > 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]<flex-mojos%[email protected]>
> <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > > > > For more options, visit this group athttp://
> > > > > > > > > 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]<flex-mojos%[email protected]>
> <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > > > 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]<flex-mojos%[email protected]>
> <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > > For more options, visit this group at
> >
> > ...
> >
> > read more ยป
>
> --
> 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]<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/

Reply via email to