• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to modify an INI configuration file via ANT build.xml ?

 
Jeff Tanner
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Through an ANT build.xml, I want to modify a setting within a project's config.ini file.

For example, from default setting:
app_service_api=UNDEFINED

to a setting defined within build.xml:
app_service_api=QA

How can I do this

Thanks

Jeff in Seattle

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add a <filterchain> section to the <copy> task and use the <replacetokens> option (or some other filter chain option). See:
http://ant.apache.org/manual/Types/filterchain.html

Here is a discussion I had about this earlier this year:
http://www.coderanch.com/t/566206/tools/Modify-build-xml-replace-words#2571618
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic