{"id":1906,"date":"2017-12-06T10:49:27","date_gmt":"2017-12-06T10:49:27","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1906"},"modified":"2020-01-09T09:42:34","modified_gmt":"2020-01-09T09:42:34","slug":"replace-xml-values-using-ant","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/replace-xml-values-using-ant\/","title":{"rendered":"Replace xml values using ant"},"content":{"rendered":"<p><strong>tpatil created the topic: Replace xml values using ant<\/strong><br \/>\nI want to replace xml values using ant. Any idea?<\/p>\n<p>e.g<br \/>\n<code><property name=\"hibernateProperties\">\n\t\t  \t<props>\n<prop key=\"hibernate.dialect\">org.hibernate.dialect.Oracle10gDialect<\/prop>\n<\/props>\n<\/property><\/code><\/p>\n<p>I want to replace the value of hibernate.dialect property using ant.<\/p>\n<p><strong>rajeshkumar replied the topic: Re: Replace xml values using ant<\/strong><br \/>\nYou can opt for any one of these based on senario&#8230;<\/p>\n<p>1. if you can your Value as holding place such as&#8230;\n<prop key=\"hibernate.dialect\">@org.hibernate.dialect.Oracle10gDialect@<\/prop>\n<p>Then u can use Filterset task in Ant&#8230;for more info&#8230;<\/p>\n<p><a href=\"http:\/\/ant.apache.org\/manual\/Types\/filterset.html\" target=\"_blank\" rel=\"noopener\">ant.apache.org\/manual\/Types\/filterset.html<\/a> <\/p>\n<p>2. If you have same requirement as you mentioned abobe&#8230; then probably you can try ReplaceRegExp ant task.<\/p>\n<p><a href=\"http:\/\/ant.apache.org\/manual\/Tasks\/replaceregexp.html\" target=\"_blank\" rel=\"noopener\">ant.apache.org\/manual\/Tasks\/replaceregexp.html<\/a> <\/p>\n<p>Please let me know if this solve your problem. \ud83d\ude42<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[12],"tags":[423],"class_list":["post-1906","post","type-post","status-publish","format-standard","hentry","category-apache-ant","tag-replace"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1906"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions"}],"predecessor-version":[{"id":1907,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions\/1907"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}