Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 45270 invoked from network); 29 Jun 2003 21:32:36 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jun 2003 21:32:36 -0000 Received: (qmail 13343 invoked by uid 97); 29 Jun 2003 21:35:05 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 13336 invoked from network); 29 Jun 2003 21:35:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jun 2003 21:35:05 -0000 Received: (qmail 45005 invoked by uid 500); 29 Jun 2003 21:32:34 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 44994 invoked from network); 29 Jun 2003 21:32:34 -0000 Received: from www.phoenixcolor.com (HELO scott.zenplex.com) (206.102.93.34) by daedalus.apache.org with SMTP; 29 Jun 2003 21:32:34 -0000 Received: from [192.168.1.101] (jason.zenplex.com [24.157.133.102]) by scott.zenplex.com (8.11.4/8.11.4) with ESMTP id h5TKLOM24796 for ; Sun, 29 Jun 2003 16:21:24 -0400 Subject: Re: [Jelly] inconsistency in boolean handling From: Jason van Zyl To: Jakarta Commons Developers List In-Reply-To: <1056919273.2773.93.camel@localhost.localdomain> References: <1056919273.2773.93.camel@localhost.localdomain> Content-Type: text/plain Organization: Zenplex Message-Id: <1056922354.2773.96.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 29 Jun 2003 17:32:34 -0400 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 On Sun, 2003-06-29 at 16:41, Jason van Zyl wrote: > Howdy, > > I have a variable in the context that is a String and has a value of > "true". Using and yield different results. > > If ${value} is set to "true" : > > evaluates to false and the body doesn't run. > > while > > evaluates to true and the body runs. > > Before each of these blocks I am echoing the value of ${value} and it > appears to be "true". From the source they they look like they are > evaluated the same yet I am getting different results? > > Anyone know of any oddities with boolean evaluation? This is part of another more subtle error, in my evaluation the body is indeed run but the body is an ant task where a NPE occurs and it seems to get completely eaten and everything continues. So it looks like it doesn't evaluate but does. I'll dig deeper. -- jvz. Jason van Zyl jason@zenplex.com http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org