Thanks! After robbing some of your code I got my Flex compiler working along side Javac.
-Shane On Thu, Feb 12, 2009 at 1:15 PM, Daniel Spiewak <[email protected]> wrote: > > http://github.com/djspiewak/buildr/blob/81234a73b70121c3c2af461ec05b7595ccec4a8f/lib/buildr/scala/compiler.rb > > Sorry, I should have specified that I was referring to my fork of Buildr. > The delegation is a little easier to see here than in the Groovy compiler, > which is using Antwrap. > > Daniel > > On Thu, Feb 12, 2009 at 12:13 PM, Shane Witbeck <[email protected] > >wrote: > > > Daniel, > > > > Thanks for the explanation. Looking at the Buildr source, I'm seeing the > > delegation happening in the > > Groovy compiler but I don't see where it's happening in the Scala > compiler. > > > > I fixed my previous error but now it seems just the flex compilation is > > happening but never delegates to javac. > > > > -Shane > > > > > > On Thu, Feb 12, 2009 at 12:38 PM, Daniel Spiewak <[email protected] > > >wrote: > > > > > 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 > > > > > > > > > >
