From user-return-66300-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Nov 06 20:17:11 2008 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 7845 invoked from network); 6 Nov 2008 20:17:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 20:17:10 -0000 Received: (qmail 4038 invoked by uid 500); 6 Nov 2008 20:17:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4013 invoked by uid 500); 6 Nov 2008 20:17:13 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 4002 invoked by uid 99); 6 Nov 2008 20:17:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 12:17:13 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.153] (HELO web55104.mail.re4.yahoo.com) (206.190.58.153) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 06 Nov 2008 20:15:54 +0000 Received: (qmail 86835 invoked by uid 60001); 6 Nov 2008 20:16:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=A+qBb2offVav+iA7au35wNFd/1EbU+hpHNNBKxNLHN0dPz5Vr7sPZq3Uz/1+XmE4QzgpMWfRdnkIq9K7vs7KNYa35Rlf/X22xpGZBHmpLcKnOgESkGq0xCSfo1E9mzvCMqKoUB9ATrsKWdTdblJM9GlwpZvE0VbSoDOjCzCZrWc=; X-YMail-OSG: vzRNcxUVM1ncSfIdzE3Kqx93Sw.ZJpu44jGU7MxfPhTdNFMfwz1KwJoZgLhRZ49MAy6hBRAE5r3tLfNxd.7fx95I2zyy4FiCDVhGZdegUp3RKW11FJj.yZR_S5PWhwPZe8y_oQjrIZA4ukPG_pWlIybJBDa44NOTjyO2deqIFZvwa7pQ20w3QnAi9YM- Received: from [12.68.231.140] by web55104.mail.re4.yahoo.com via HTTP; Thu, 06 Nov 2008 12:16:35 PST Date: Thu, 6 Nov 2008 12:16:35 -0800 (PST) From: Matt Benson Subject: Re: Strange Condition Evaluation Bug? To: Ant Users List In-Reply-To: <20368618.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <470807.86711.qm@web55104.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Your problem is that you checked property isset="${foo}" when you should have been checking property isset="foo". HTH, Matt --- Shane Fisher wrote: > > Can someone please explain this bizarre behavior to > me? I can't for the life > of me figure out why this condition is evaluating to > "true", especially > since just before that I'm logging the value of the > property. > > build.xml: > > > > > Test file for weird build > bug. > > > > if="env-error-condition"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > depends="init"> > > > > > > Execution: > > sfisher@SFISHER-D620 MdmProxy > $ echo $AXIS_HOME > C:\axis-1_4 > sfisher@SFISHER-D620 MdmProxy > $ ant -f build-simple.xml > Buildfile: build-simple.xml > > init: > [echo] Value of env-error-condition: true > > env-help: > [echo] The following variables must be set in > your environment: > [echo] AXIS_HOME : Directory where apache axis > is installed. e.g. > C:/axis > -1_4 > > env-info: > [echo] ant.project.name = Simple > [echo] AXIS_HOME = C:\axis-1_4 > > env-fail-check: > [echo] Value of env-error-condition: true > > BUILD FAILED > c:\home\sfisher\Genentech\MdmProxy\build-simple.xml:36: > The following error > occu > rred while executing this line: > c:\home\sfisher\Genentech\MdmProxy\build-simple.xml:11: > One or more required > env > ironment variables are not set. Please check the > output of ant target > env-help. > -- > View this message in context: > http://www.nabble.com/Strange-Condition-Evaluation-Bug--tp20368618p20368618.html > Sent from the Ant - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org