1. Ant is NOT a programming language ;-)
2. ensure to have AntContrib ..... (if,for,trycatch)
3. a "clean" Ant way of a switch could be 
   <input validargs>
   <antcall target="do${property}"/>
4. Maybe it would easier writing the installer in java than in xml....
   You could reuse the Ant classes from the java side. Maybe via including
   buildfile snippets (see Ant's testcases).
5. Maybe Leafcutter could ease your (java)life
   http://marc.theaimsgroup.com/?l=ant-user&m=112962452208546&w=2
   https://leafcutter.dev.java.net/


Jan


>-----Ursprüngliche Nachricht-----
>Von: Leo [mailto:[EMAIL PROTECTED] 
>Gesendet: Dienstag, 18. April 2006 23:30
>An: user@ant.apache.org
>Betreff: checking property values 
>
>Hi,
>               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 something? 
>   
>  Ex:
><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?
>   
>  Thanks!
>
>               
>---------------------------------
>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. 
> Great rates starting at 1&cent;/min.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to