Update! After spending hours and hours trouble shooting this Flex
Compiler problem I found that I can put artifacts scoped as "test" on
the include-libraries and just move the artifacts scoped to "external"
to the library-path.

Still this is kind of a headache because there is no fine grained
control over how dependencies are compiled for tests which in my case
has lead me to modify source code to make things work in some edge
cases.

Lance

On Apr 27, 11:49 am, Dtornkaew <[email protected]> wrote:
> When compiling multiple SWC libraries AND marking all dependencies as
> scope "external" the unit tests won't compile. The Flex Compiler error
> complains about incompatible overrides on the generated locale
> classes.
>
> This problem arises when I create 2 SWC libraries where library B
> depends on library A and both library A and B have locales and I mark
> both libraries with compileLocales property and all dependencies on
> library A and B are marked to scope "external".
>
> I have been able to fix the problem by changing TestCompilerMojo to
> put all "external" and "test" dependencies on the library-path instead
> of on the include-path. When I do this everything works fine.
>
> I am torn... I know there are problems with the Automation framework
> and Unit Tests if all dependencies marked "test" are not on the
> "include-path" but at the same time there are problems with compiling
> multiple dependent SWCs with compiled locales. The only way I can see
> to solve this problem is for more scopes such as "test-internal" and
> "test-merged" but this is not my decision to make... just my
> problem :'(
>
> Anyone have suggestions or run into this problem before?
>
> The reason I am using scope "external" for all dependencies on my
> libraries is to attempt to keep my libraries free of transient code.
>
> Thanks,
> Lance
--~--~---------~--~----~------------~-------~--~----~
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