Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 56268 invoked from network); 12 Feb 2009 18:13:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 18:13:53 -0000 Received: (qmail 10100 invoked by uid 500); 12 Feb 2009 18:13:53 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 10074 invoked by uid 500); 12 Feb 2009 18:13:53 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 10063 invoked by uid 99); 12 Feb 2009 18:13:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 10:13:53 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.221.20] (HELO mail-qy0-f20.google.com) (209.85.221.20) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 18:13:38 +0000 Received: by qyk13 with SMTP id 13so1139289qyk.5 for ; Thu, 12 Feb 2009 10:13:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.44.212 with SMTP id b20mr287594vcf.116.1234462396545; Thu, 12 Feb 2009 10:13:16 -0800 (PST) In-Reply-To: <5c99d0330902120938i450d7b34k7fe3da571f32685e@mail.gmail.com> References: <153af7a10902120929p47bb0c3eob09f31cc86da3256@mail.gmail.com> <5c99d0330902120938i450d7b34k7fe3da571f32685e@mail.gmail.com> Date: Thu, 12 Feb 2009 13:13:16 -0500 Message-ID: <153af7a10902121013w34a92765n917277546613aae5@mail.gmail.com> Subject: Re: calling 2 compilers for a project From: Shane Witbeck To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=0016e6468f68a27cc80462bcac2e X-Virus-Checked: Checked by ClamAV on apache.org --0016e6468f68a27cc80462bcac2e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 >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 > > > --0016e6468f68a27cc80462bcac2e--