Only one compiler will be selected per project. The best way to get around this (as used by both the Scala and Groovy joint compilers) is to define your compiler to delegate to the secondary compiler when complete. Thus, your flex compiler would invoke the Java compiler. You will also need to `unshift` the registration of the compiler with Buildr core, otherwise the Java compiler will be selected before Flex.
Officially, the best way to solve this problem is to split out your flex sources into a subproject. While this is arguably cleaner, it just doesn't work every time (which is why I present the previous workaround). :-) Daniel On Thu, Feb 12, 2009 at 11:29 AM, Shane Witbeck <[email protected]>wrote: > I'm working on a new compiler which compiles Flex applications and I want > to > call it along with the javac compiler. What's the best way to do this? > > I keep getting an error "mxmlc compiler already selected for this project" > > Thanks, > > -Shane >
