Replace xml values using ant

tpatil created the topic: Replace xml values using ant
I want to replace xml values using ant. Any idea?

e.g
org.hibernate.dialect.Oracle10gDialect

I want to replace the value of hibernate.dialect property using ant.

rajeshkumar replied the topic: Re: Replace xml values using ant
You can opt for any one of these based on senario…

1. if you can your Value as holding place such as… @org.hibernate.dialect.Oracle10gDialect@

Then u can use Filterset task in Ant…for more info…

ant.apache.org/manual/Types/filterset.html

2. If you have same requirement as you mentioned abobe… then probably you can try ReplaceRegExp ant task.

ant.apache.org/manual/Tasks/replaceregexp.html

Please let me know if this solve your problem. 🙂
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x