Hello 

        Jan I could do it. 
Thanx for your timely help.






-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 3:50 PM
To: [email protected]
Subject: AW: Switch Case equivalent of ant

>>Can anybody tell me the switch case equivalent of ANT
>>Where I can select according to case number I give as i/p from user.

What do you want to switch? You could load a different set of properties
with
  <input property="choice" validargs="1,2"/>
  <property file="${choice}.properties"/>
You could use different targets with
  <input property="choice" validargs="1,2"/>
  <antcall target="${choice}"/>
or a set of if/unless/depends clauses on the targets
or 
  <import file="${choice}.xml"/>
  $>ant -Dchoice=stuffA


>You have to download antcontrib.jar.  Google or look for 
>AntContrib in sourceforge. It will give you some programming 
>capability and it has the switch command which behaves like case)

<ac:switch> is another option....


- always ensure that you have a default option
- think about a build without any user interaction (CruiseControl, Gump,
....)
- think about your build process - different things for different user
inputs?


Jan

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




Disclaimer

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
have received this communication in error, please immediately notify the [EMAIL 
PROTECTED] and destroy the original message. The recipient should check this 
email and any attachments for the presence of viruses.  Ness has taken every 
reasonable precaution to minimize this risk, and accepts no liability for any 
damage caused by any virus transmitted in this email.  Ness reserves the rights 
to monitor and review the content of all messages sent to or from this E-mail 
address, and store them on the Ness E-mail system.

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

Reply via email to