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.
${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