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 75267 invoked from network); 18 Oct 2000 19:27:41 -0000 Received: from e31.co.us.ibm.com (HELO e31.bld.us.ibm.com) (32.97.110.129) by locus.apache.org with SMTP; 18 Oct 2000 19:27:41 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.99.132.205]) by e31.bld.us.ibm.com (8.9.3/8.9.3) with ESMTP id PAA84712 for ; Wed, 18 Oct 2000 15:21:28 -0400 Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.21.4.158]) by westrelay02.boulder.ibm.com (8.11.0m3/NCO v4.94) with ESMTP id e9IJRdd37248 for ; Wed, 18 Oct 2000 13:27:39 -0600 Importance: Normal Subject: Re: Questions on Ant To: ant-dev@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: "Glenn McAllister" Date: Wed, 18 Oct 2000 15:28:18 -0400 X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 5.0.4a |July 24, 2000) at 10/18/2000 03:27:38 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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