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 83213 invoked from network); 18 Oct 2000 19:33:56 -0000 Received: from unknown (HELO odo.i2.com) (64.26.226.21) by locus.apache.org with SMTP; 18 Oct 2000 19:33:56 -0000 Received: from i2.com ([10.16.16.152]) by odo.i2.com (8.9.0/8.9.0) with ESMTP id OAA00381 for ; Wed, 18 Oct 2000 14:32:20 -0500 (CDT) Message-ID: <39EDFB09.1D4229EF@i2.com> Date: Wed, 18 Oct 2000 14:33:29 -0500 From: Ken Wood X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: ant-dev@jakarta.apache.org Subject: Re: Questions on Ant References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Sorry, it appears I misunderstood what the test is testing for... sigh... Glenn McAllister wrote: > > Its actually "if prop1 is defined, then xxx will be executed." It doesn't > matter what the value is, the property just has to have a value. What you > may need to do is script a test of the two properties and set (or not) a > third property that the target you want to execute depends on. > > Glenn McAllister > Software Developer. IBM Toronto Lab, (416) 448-3805 > "An approximate answer to the right question is better than the > right answer to the wrong question." - John W. Tukey > > Please respond to ant-dev@jakarta.apache.org > > To: ant-dev@jakarta.apache.org > cc: > Subject: Re: Questions on Ant > > Well, > > What Ken suggests seems to be a kind of hack (even if it'd worked as he > suppose). Am I right there's no "right" way to do what I need? Maybe it > makes sense to modify Target.java so that a target could take a list of > comma-separated properies names and check whether all of them are true? > > Max > > P.S. BTW, Ken says "if prop1 is true, xxx will be executed". Is it really > so or "prop1" should simply be set regardless of its value? > > Thanks again, > Max