ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varadarajan, Srivathsan" <>
Subject RE: checking property values
Date Tue, 18 Apr 2006 21:53:12 GMT
Sure. Have a look at the <equals> condition.

-- Srivathsan

-----Original Message-----
From: Leo [] 
Sent: Tuesday, April 18, 2006 5:30 PM
Subject: checking property values 

               Iam trying to write a Ant based installer. It basically
will ask for input from the user and then based on that information does
different things. Iam not sure how to check if certain property is
<input message="Enter the number of Servers" addproperty="numservers"/>
  Now I need to do different things depending on the value of
numservers. Like in programming languages, we do:

  if (numservers == 1) {
  } else if (numservers > 1) {
  Can we do something similar using Ant?

Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
rates starting at 1&cent;/min.

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message