This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!