Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 53510 invoked from network); 24 Jan 2006 21:00:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 21:00:49 -0000 Received: (qmail 99185 invoked by uid 500); 24 Jan 2006 21:00:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 99145 invoked by uid 500); 24 Jan 2006 21:00:44 -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 99134 invoked by uid 99); 24 Jan 2006 21:00:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 13:00:44 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.154] (HELO web30901.mail.mud.yahoo.com) (68.142.200.154) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Jan 2006 13:00:42 -0800 Received: (qmail 77520 invoked by uid 60001); 24 Jan 2006 21:00:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uIn+l12KX1uHV08yAJxRAsOXOLMXc4PYiv21PnA8ow+ueqj2kfwebHqk13cDa+hW3f55qWVtiGGFee9XH7JG+68u9pmSJiS92oUJjpXxRtkEZadSMwU593/S7Vz5choVJGFGqDwHtzrWACVrfOTKj5k/vVHy8BxVYhL1278F+Pg= ; Message-ID: <20060124210021.77517.qmail@web30901.mail.mud.yahoo.com> Received: from [66.10.233.130] by web30901.mail.mud.yahoo.com via HTTP; Tue, 24 Jan 2006 13:00:21 PST Date: Tue, 24 Jan 2006 13:00:21 -0800 (PST) From: Matt Benson Subject: Re: Checking for non-existence of environment variable To: Ant Users List In-Reply-To: <43D69423.7020104@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N uh... no. Try it. Then reread http://ant.apache.org/manual/CoreTasks/fail.html . -Matt --- Sergei Dubov wrote: > The whole point is that ${env.NO_VALUE} will return > ${env.NO_VALUE} as > its value if it doesn't exist... > > -Serge. > > Burgess, Benjamin wrote: > > Will work for you? > > > > Ben > > > > -----Original Message----- > > From: Sergei Dubov [mailto:sdubov@gmail.com] > > Sent: Tuesday, January 24, 2006 3:48 PM > > To: user@ant.apache.org > > Subject: Checking for non-existence of environment > variable > > > > Hi guys, > > > > I am sure this question has been asked before. But > I did my research and > > > > found no answers whatsoever. > > > > Basically I am trying to check for existence of an > environment variable. > > > > And if it is not defined I want the script to > fail. > > > > default="echo-env"> > > > > > > > > ${env.NO_VALUE} > > > > > > > > Basically this will return "${env.NO_VALUE}". > > > > And potential check will think it > actually HAS value. Is > > there any way to make Ant recognize that > System.getenv("NO_VALUE") > > returns null? > > > > Thank you very much beforehand, > > > > Serge. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > > > > > > > ************************************************************** > > This message, including any attachments, contains > confidential information intended for a specific > individual and purpose, and is protected by law. If > you are not the intended recipient, please contact > sender immediately by reply e-mail and destroy all > copies. You are hereby notified that any > disclosure, copying, or distribution of this > message, or the taking of any action based on it, is > strictly prohibited. > > TIAA-CREF > > > ************************************************************** > > > > > > > --------------------------------------------------------------------- > > 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 > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org