Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 28729 invoked from network); 21 Dec 2000 02:16:19 -0000 Received: from marni.otago.ac.nz (root@139.80.75.248) by locus.apache.org with SMTP; 21 Dec 2000 02:16:19 -0000 Received: from localhost (mariusz@localhost) by marni.otago.ac.nz (8.9.3/8.9.3) with ESMTP id PAA31515 for ; Thu, 21 Dec 2000 15:16:14 +1300 Date: Thu, 21 Dec 2000 15:16:14 +1300 (NZDT) From: Mariusz Nowostawski To: ant-dev@jakarta.apache.org Subject: Re: [PATCH] attempt 2 at javac refactoring. In-Reply-To: <20001221014925.15726.qmail@web123.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Wed, 20 Dec 2000, Diane Holt wrote: > I agree about not losing the compiler property -- I need to specify which > compiler is being used going in. Yup. I have already counted your voice in that issue ;o) > But I have to disagree with this idea: > [...] > This would be a very bad idea, as far as I'm concerned -- I can't just > have things compiling willy-nilly with any old compiler Ant happens to > find. Yikes! Which compiler I'm using needs to be a very controlled aspect > of the build. I knew you will tell this! I agree here, but you have to agree that just throwing an exception is not good in here either. We have basically two cases (apart from the obvious where the compiler is left completely up to ANT and the user): one, where the developer wants full control over the compiler, second, where the developer just suggests a compiler, but in fact "any would possibly" do the job right. In second case, I do not like the idea that if I suggest one compiler the whole build just fails because user does not have it. I would like it to be more robust here. In first case, I fully agree with you, and I think something like that: $ ant Buildfile: build.xml compile: [mkdir] Created dir: /blabla/classes [javac] Compiling 253 source files to /blabla/classes [javac] "custom" compiler is not available [javac] you will have to install a "custom" compiler first, [javac] or continue compiling on your won risk. [javac] Do you want to continue the build with JDK compilers? [yes/no] ? _ Would solve the issue. In the second case (where I just suggested a compiler) I do not the user even bother typing 'yes', I want ANT do it by default. The user knows what compiler was suggested, and if the build fails with her "home-grown" compiler, it is up to her. cheers Mariusz