buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shane Witbeck <sh...@digitalsanctum.com>
Subject Re: calling 2 compilers for a project
Date Thu, 12 Feb 2009 18:13:16 GMT
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 <djspiewak@gmail.com>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 <shane@digitalsanctum.com
> >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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message