aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes how to read from a  file and execute the lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "how to read from a  file and execute the lines" Watch "how to read from a  file and execute the lines" New topic
Author

how to read from a file and execute the lines

Jason Rodrigues
Greenhorn

Joined: Oct 20, 2005
Posts: 21
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

Joined: Oct 20, 2005
Posts: 21
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to read from a file and execute the lines