On Mon, Jan 19, 2009 at 9:31 PM, Arnaud <[email protected]> wrote:
> I've some trouble with flexunit on flex-mojos 2.0.1 :
>
> [ERROR] Unable to resolve resource bundle "errors" for locale "fr_FR".
> [ERROR] Unable to resolve resource bundle "reflection" for locale
> "fr_FR".
> [ERROR] Unable to resolve resource bundle "attributes" for locale
> "fr_FR".
> [ERROR] Unable to resolve resource bundle "assert" for locale "fr_FR".
We haven't upgraded to 2.0.1 yet (we're still on 2.0M10), and we have
10 languages being built without problems. Technically, this error is
because it can't find fr_FR/errors.properties, etc. when compiling,
but we do fr_FR as well and don't have any problems. It's possible
it's a 2.0.1 issue I suppose. Or it's possible it's because you are
using many deprecated elements in your configuration below:
> My pom :
>
> [...]
> <plugins>
> <plugin>
> <groupId>info.flex-mojos</groupId>
> <artifactId>flex-compiler-mojo</artifactId>
> <version>2.0.1</version>
> <extensions>true</extensions>
> <configuration>
>
> <mergeResourceBundle>true</mergeResourceBundle>
> <useNetwork>true</useNetwork>
> <locales>
> <locale>fr_FR</locale>
> </locales>
> <defines>
> [...]
> </defines>
> <sourceFile>[...]</sourceFile>
>
> <allowSourcePathOverlap>true</allowSourcePathOverlap>
> <sourcePaths>
> <path>src/main/flex</path>
>
> <path>src/main/flex/locale/{locale}</path>
> </sourcePaths>
>
> <resourceBundlePath>src/main/flex/locale/{locale}</
> resourceBundlePath>
> </configuration>
> </plugin>
> [...]
> <dependency>
> <groupId>flexunit</groupId>
> <artifactId>flexunit</artifactId>
> <version>0.90</version>
> <type>swc</type>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>info.flex-mojos</groupId>
> <artifactId>testing-support</artifactId>
> <version>2.0.1</version>
> <type>swc</type>
> <scope>test</scope>
> </dependency>
In 2.0.1 (since M9 or M10 or earlier actually), there are some
deprecated elements that you should upgrade. That may or may not fix
the resource bundle issue, but it's the right thing to do anyway.
<locales> and <mergeResourceBundle> should be replaced with the new
<compiledLocales> and/or <runtimeLocales> lists.
The groupId for flexunit has changed from just flexunit to
com/adobe/flexunit in 2.0.1
I've never tried putting my locale directory inside my src/main/flex
dir like you have. In theory it should work, but perhaps it could be
causing the problem as well? it's hard to say.
Once we upgrade to 2.0.1 on Tue or Wed. I might be able to help more.
Logan
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---