Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 48930 invoked from network); 25 Mar 2002 10:13:39 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Mar 2002 10:13:39 -0000 Received: (qmail 20923 invoked by uid 97); 25 Mar 2002 10:13:49 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 20906 invoked by uid 97); 25 Mar 2002 10:13:49 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 20895 invoked from network); 25 Mar 2002 10:13:49 -0000 Content-Type: text/plain; charset="iso-8859-1" From: stephan beal To: "Ant Developers List" Subject: Re: PATCH: cvs implementation Date: Mon, 25 Mar 2002 11:13:25 +0100 X-Mailer: KMail [version 1.3.2] References: <20020325095656.72073.qmail@web13403.mail.yahoo.com> In-Reply-To: <20020325095656.72073.qmail@web13403.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Monday 25 March 2002 10:56 am, Diane Holt wrote: > --- stephan beal wrote: > > i'll just put it this way: i've been programming since i was 12 years > > old, and i found it confusing. > > Well, not knowing how old you are now... (not asking, just making a point (29) > But an old shell-hacker like you should be completely familiar with: > [ $FOO ] && echo "FOO is set to any old thing, including false" Yes, but only because a non-empty string explicitely evaluates to "true" in bash/perl (unless it's the string "0"). > Imagine for a moment that you didn't implement this functionality, but > have only inherited a build file with that construct, and you're new to > Ant and CVS, then tell me you'd be able to intuit it represents an > implicit foreach. That was exactly the case - i hadn't touched ant until about 2 weeks ago (though i wasn't new to CVS), and needed foreach behaviour on a list of cvs files (to specific versions - that was what the cvs task didn't do, which i needed). The most intuitive way to implement it, to me, was the one-command-per-line. It would have never occured to me to implement it using and nested args, since that's so cumbersome to write (and i'm working from an Ant User's perspective). You're right, the optional foreach task would have sufficed just fine but... hacking's in my blood... i couldn't resist ;). > < (and that would include almost anyone working with ant, i would hazard > > to guess). > > But that guess would most likely be wrong. Take a look at all the optional > SCM tasks, and you'll get an idea of how many different systems are in use > out there. But my changes only apply to the Cvs task, and anyone using that task is likely to be familiar with Cvs (at least the common commands as they are presented in WinCVS). ----- stephan Generic Unix Computer Guy stephan@einsurance.de - http://www.einsurance.de Office: +49 (89) �552 92 862 Handy: �+49 (179) 211 97 67 "...control is a degree of inhibition, and a system which is perfectly inhibited is completely frozen." -- Alan W. Watts -- To unsubscribe, e-mail: For additional commands, e-mail: