BTW, if you find any useful tip you may consider sharing it on wiki

On Dec 11, 3:25 pm, zam0th <[email protected]> wrote:
> sorry for raising this up again :).
>
> i'm flexmojoing our flex project. we've got all the resource bundles
> set up and wired in Flex Builder, so i try to reproduce it with maven.
> basically i was lost in all the possible variants to localize the
> application (neither of which worked for me), so can someone maybe
> please point out what i do wrong?
>
> what i want to do is simple - compile the application with
> localization into single swf, i don't need separate swfs for different
> locales. resource bundle is here: {basedir}/locale, it's called
> "eRequestAppli".
>
> my relevant pom.xml:
>
>                                         <execution>
>                                                 <id>default-compile-
> swf</id>
>                                                 <goals>
>                                                         <goal>compile-
> swf</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         <!--
> compilation-necessary stuff here -->
>
> <resourceBundlePath>${basedir}/locale/{locale}</resourceBundlePath>
>
> <mergeResourceBundle>true</mergeResourceBundle>
>
> <includeResourceBundles>
>
> <bundle>eRequestAppli</bundle>
>                                                         </
> includeResourceBundles>
>                                                         <locales>
>                                                            
> <locale>en_US</locale>
>                                                            
> <locale>fr_FR</locale>
>                                                         </locales>
>                                                 </configuration>
>                                         </execution>
>
> when i compile, i get a very simple error:
> [ERROR] Unable to resolve resource bundle "eRequestAppli"
>
> the compiler config is as follows:
>
> [INFO] Flex compiler configurations:
> -compiler.accessible=true
> -compiler.actionscript-file-encoding UTF-8
> -compiler.allow-source-path-overlap=false
> -compiler.as3=true
> -compiler.context-root /ERequestWeb
> -compiler.debug=false
> -compiler.es=false
> -compiler.external-library-path D:\workspace\erequest-web-flex\target
> \classes\libraries\playerglobal.swc
> -compiler.fonts.local-fonts-snapshot D:\workspace\erequest-web-flex
> \target\classes\fonts.ser
> -compiler.fonts.managers flash.fonts.JREFontManager
> flash.fonts.AFEFontManager flash.fonts.BatikFontManager
> -compiler.headless-server=false
> -compiler.include-libraries=
> -compiler.keep-all-type-selectors=false
> -compiler.keep-generated-actionscript=false
> -compiler.library-path D:\repositories\local\com\adobe\flex\framework
> \flex\3.2.0.3958\flex-3.2.0.3958.swc D:\repositories\local\com\adobe
> \flex\framework\framework\3.2.0.3958\framework-3.2.0.3958.swc D:
> \repositories\local\com\adobe\flex\framework\rpc
> \3.2.0.3958\rpc-3.2.0.3958.swc D:\repositories\local\com\adobe\flex
> \framework\utilities\3.2.0.3958\utilities-3.2.0.3958.swc D:
> \repositories\local\org\graniteds\granite-core-swc\1.2.0_SP1\granite-
> core-swc-1.2.0_SP1.swc D:\repositories\local\eu\cec\erequest\erequest-
> statics\0.0.1-SNAPSHOT\erequest-statics-0.0.1-SNAPSHOT.swc D:
> \repositories\local\com\adobe\flex\framework\framework
> \3.2.0.3958\framework-3.2.0.3958-en_US.rb.swc D:\repositories\local\com
> \adobe\flex\framework\framework\3.2.0.3958\framework-3.2.0.3958-
> fr_FR.rb.swc D:\repositories\local\com\adobe\flex\framework\rpc
> \3.2.0.3958\rpc-3.2.0.3958-en_US.rb.swc D:\repositories\local\com\adobe
> \flex\framework\rpc\3.2.0.3958\rpc-3.2.0.3958-fr_FR.rb.swc
> -compiler.locale en_US fr_FR
> -compiler.namespaces.namespacehttp://www.adobe.com/2006/mxmlD:
> \workspace\erequest-web-flex\target\classes\config-3.2.0.3958\mxml-
> manifest.xml
> -compiler.optimize=true
> -compiler.services D:\workspace\erequest-web-flex\..\erequest-web
> \resources\services-config.xml
> -compiler.source-path D:\workspace\erequest-web-flex\target\generated-
> sources\flexmojos
> -compiler.strict=true
> -compiler.use-resource-bundle-metadata=true
> -compiler.verbose-stacktraces=false
> -default-background-color 8821927
> -default-frame-rate 24
> -default-script-limits 1000 60
> -default-size 500 375
> -include-resource-bundles eRequestAppli
> -licenses.license flexbuilder3 xxx
> -licenses.license flexbuilder3.displayed10DaysLeftMessage true
> -licenses.license flexbuilder3.displayed20DaysLeftMessage true
> -licenses.license flexbuilder3.displayedFirstLaunchMessage true
> -licenses.license flexbuilder3.displayedStartPageAtLeastOneTime true
> -metadata.date Fri Dec 11 18:19:18 CET 2009
> -metadata.localized-title Unnamed - eu.cec.erequest:erequest-web-
> flex:swf:0.0.1-SNAPSHOT x-default
> -target-player 9.0.0
> -use-network=true
> -verify-digests=true -static-link-runtime-shared-libraries=false -load-
> config=
> -metadata.language+=en_US
> -metadata.language+=fr_FR
>
> so, wtf can't it find the resource bundle?

-- 
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