Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 37722 invoked from network); 25 Apr 2002 05:56:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Apr 2002 05:56:23 -0000 Received: (qmail 23421 invoked by uid 97); 25 Apr 2002 05:56:32 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 23393 invoked by uid 97); 25 Apr 2002 05:56:31 -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 23369 invoked from network); 25 Apr 2002 05:56:31 -0000 Message-ID: <3CBF2096.6060805@arielpartners.com> Date: Thu, 18 Apr 2002 15:37:58 -0400 From: Craeg K Strong Organization: Ariel Partners LLC User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: test for a property being true References: <01ba01c1e6a3$189c2ab0$26b0e40f@Stelvio> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think this is a good idea; I would use it if it were available. One question: how about generalizing it so that you can test for any value: If you omit the value, it defaults to "true," as per your original What would be the drawbacks of such a design? --Craeg Steve Loughran wrote: >What test do we have for a property being true? > >that is if property foo="true" or "yes" it should eval to true; if it is set >to anything else the property should be unset. This is not what isset does, >which tests for declared(foo) > >I cant see how to do without using to perform two case insensitive >string comparisions right now, and that seems silly. > >Proposal: I knock up a quick and condition pair. > >-steve > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: