Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

copy value from a file into xml tag of other file using ant  RSS feed

Dipali Kul
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a file called (which is different from
This file has the values defined like:

name.db.username =db_user
name.db.pwd =db_pwd

I need to retrieve the password value and copy this into password tag value to a jdbc.xml file. The format of jdbc.xml is as below:

<password>"value should be copied here"</password>

I need to do plug in this code in an existing build.xml file written using ant script.
Would really appreciate a quick response.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!