There are multiple options:
1. create two hibernate files and select only one of them while copying using 
conditional patternset <include if>. 
2. create a template and fill in the the values  
<copy><filterchain><expandproperties>
3. modify the config file with <replaceregexp>
4. modify the config file with <xmltask> (external task)


Jan

>-----Ursprüngliche Nachricht-----
>Von: jeusdi [mailto:[email protected]] 
>Gesendet: Mittwoch, 21. Januar 2009 13:43
>An: [email protected]
>Betreff: Modify xml file
>
>
>Hello list.
>
>I'm using Hibernate in my web project. I've created an Ant 
>file in order to
>create a war and deploy it to my remote tomcat. The problem is 
>locally I
>test my database access with a user/password database. So, 
>Hibernate has a
>hibernate.cfg.xml, in order to set the user and password to access to
>database with. So, I need to change these fileds previously to 
>war task. How
>Can I to it?
>
>Thanks.
>I will appreciate your help a lot.
>-- 
>View this message in context: 
>http://www.nabble.com/Modify-xml-file-tp21582407p21582407.html
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to