This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to read from a file and execute the lines

 
Jason Rodrigues
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am a noob @ Ant . The problem i am facing is that i have a text file "control.ini" which has a list of sql files that has to be read and executed in the db via ant.
control.ini
-----------
a.sql
b.sql


I used the load file and store it in a variable mess, when i use the
echo task i and see all the sql files in the variable mess. But when i try to use the foreach tag it bombs out . Am i following the correct route or am i way off base ??

Thankx for your helps guys

 
Jason Rodrigues
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys , well i got it to work and i thought i share it with you guys . Since I didnt find a solution out there. Its not a perfect solution , but it works

PS. u need to have apache contrib lib

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic