Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

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

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x