Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic