Hello I have an issue with the V3 plugin (in both beta 5 and latest snapshot). I am trying to compile a flex 4 application project to a SWF file using Resource bundles for localization.
When attempting to compile the resource bundle for a locale to a SWC library, I get a compc error:
[INFO] Building locale fr_FR
[INFO] Loading configuration file D:\\workspace\\RBTest\\target\\compiler-resources\\flex-config.xml
[ERROR] Flex compiler error (defaults at -1:-1)
[ERROR] unable to open \'./themes/Spark/spark.css\'
And then the compiler fails because of the previous error:
[INFO] Loading configuration file D:\\workspace\\RBTest\\target\\compiler-resources\\flex-config.xml
[ERROR] Flex compiler error (command line at -1:-1)
[ERROR] unable to open \'D:\\workspace\\RBTest\\target\\compiler-resources\\TestRB-fr_FR.swc\'
Thanks for taking a look, it would be greatly appreciated
Sample project exhibiting the issue
Hey Fabrice,
sorry for late answer, I've been swamped at the office these days. I think that the output is due to two different issues (one with the Spark theme, the other with your own resource bundle). Could you please descibe your project structure (where are your locale files, etc.) and attach your POM (feel free to "obfuscate" the parts you dont want to show there) ? I could help you more efficiently this way.
Cheers !
Jef
Oops !
Didn't see the attached file. Sorry, Ill have a look to this.
Thanks
Hello Jef,
Any updates regarding this ?
Thanks and good week-end
Hey Fabrice,
the problem is not related to the compiler/plugin IMHO. I'd be glad to help you if you describe more precisely your objectives. I've been able to reproduce and fix your problem (see attachment).
Anyhow, precisions about resource bundles and locales. A resource bundle is a list of key/values pairs which reside in a property file. At compile-time, these properties are parsed and the compiler creates an AS class extending ResourceBundle (http://help.adobe.com/fr_FR/AS3LCR/Flex_4.0/mx/resources/ResourceBundle.html) and add the properties to an AS dictionary. You may virtually use the resourcebundles to add every value (including classes, types, images, and so on) you could need to change at runtime. Locales are resource bundles but they are handled by the compiler and Flex framework in a very specific way. If you want to create your own locale for a specific projet or for your organization needs, you will have to define the keys required by the framework itself to work properly (see http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f2d.html#WS2db454920e96a9e51e63e3d11c0bf69084-7f34, "For all other locales, such as ja_JP, fr_FR, or es_ES, in addition to creating the new properties files, you will also have to create new framework locale files before compiling your Flex application."). The easiest way to achieve this is to use the copylocale utility shipped with the Flex framework to copy the property files to your project (as described in the link I mentioned previously).
I hope this helps.
Cheers !
Jef
Fixed projet (resource bundle, no locale)