ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Modify xml file
Date Wed, 21 Jan 2009 12:49:55 GMT
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)


>-----Urspr√ľngliche Nachricht-----
>Von: jeusdi [] 
>Gesendet: Mittwoch, 21. Januar 2009 13:43
>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?
>I will appreciate your help a lot.
>View this message in context: 
>Sent from the Ant - Users mailing list archive at
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message