Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 84735 invoked by uid 500); 7 Jun 2001 22:30:03 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 84671 invoked from network); 7 Jun 2001 22:29:59 -0000 Message-Id: <3.0.6.32.20010608083106.00a2d620@mail.alphalink.com.au> X-Sender: gdonald@mail.alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 08 Jun 2001 08:31:06 +1000 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: Configure->Template->Build Cc: ant-dev@jakarta.apache.org In-Reply-To: <20010607185351.87927.qmail@web13401.mail.yahoo.com> References: <3.0.6.32.20010608001013.008792e0@mail.alphalink.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 11:53 AM 6/7/01 -0700, Diane Holt wrote: >--- Peter Donald wrote: >> Iteration and selection should really only be used in >> rule/template/generic targets and thus only used by experienced people. >> Including these features in the core would however mean novices would >> use them ... probably in bad ways ;) Worse we would have to support and >> explain to them, "no don't use if ask there, use multiple targes with if >> attribute, don't use repetition here, explicitly list the data etc". > >I have to disagree with this. I don't think what functionality Ant offers >should be determined by whether it might be used "in bad ways". I've >cleaned up plenty of cruddy code -- C, shell-scripts (all the variants), >make (all the variants), jam, you name it -- and never once did it make me >think, "Yuck! -- 'X' must really be a crappy tool, it's being used so >badly." I just think, "Man, whoever wrote this sure didn't know what the >hell they were doing." possibly. I have had the opposite experience. One reason I use java is because I got fed up with crappy code produced by C++ developers (Same with python vs perl). Sure - these languages when used well, are easy to read, easy-ish to use etc. However it is rare that people have the skill to do this properly. >> By separating repetition and selection into another layer (ie >> templating), it saves us mountains of hassle and ensures that people >> using it will have a clue (or at least to some degree). > >I just don't see that -- if it's being offered, whether inside or out, >it's still connected, officially, to Ant, and you're right back where you >say you don't want to have to be (supporting and documenting it). true - but it is supporting a more advanced build developer which is infinitly easier. That said I always planned to add an if task to ant (though host it elsewhere), so ... Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*