Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 85077 invoked from network); 3 Jul 2002 23:53:27 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Jul 2002 23:53:27 -0000 Received: (qmail 28600 invoked by uid 97); 3 Jul 2002 23:53:41 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 28584 invoked by uid 97); 3 Jul 2002 23:53:40 -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 28570 invoked by uid 50); 3 Jul 2002 23:53:40 -0000 Date: 3 Jul 2002 23:53:40 -0000 Message-ID: <20020703235340.28569.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 10386] - condition with isset does not return valid results on ${env.} when varname is not defined X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10386 condition with isset does not return valid results on ${env.} when varname is not defined ------- Additional Comments From holtdl@yahoo.com 2002-07-03 23:53 ------- > But another condition, does not set the variable either. Yes, it does -- but, again, you've got your defaults *before* your , and that will not work. You've got to move those to *after* the condition: $ ant whatever: [echo] DEFAULT VALUE for var7 var8 set because env.var0 is NOT set $ var0=foo ant whatever: [echo] var7 set because env.var0 IS set DEFAULT VALUE for var8 -- To unsubscribe, e-mail: For additional commands, e-mail: