• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to edit xml or propeties file manually by the use of ant

 
Sujeet Kumar Singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

How to edit xml or propeties file manually by the use of ant.

Please share with examples and steps for the same.

Thanks in advance,

Sujeet Kumar Singh
 
Phani Raju
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the below tasks available in Ant:

  • PropertyFile
  • Replace
  • ReplaceRegExp


  • Post back if you get any issues while using these.
     
    Peter Johnson
    author
    Bartender
    Posts: 5852
    7
    Android Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Here is what I do. I create my xml and properties files with embedded EL-style property references, such as ${something}. Then in my Ant script I make sure that I define the "something" property, and I use the copy task with the filterchain/expandproperties setting. Also check into the other filterchain options.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic