Re: Read (loop through) content of a file with Ant
Posted By:
Anonymous
Posted On:
Tuesday, September 14, 2004 10:00 AM
One thing that u can try is to split the SQL sentence and get each filename as a result of a query in a file as "output".
For each of this file u can use the 'LoadFile' task to get the names in a property and then use this properties to generate the Zip files names.
I.e:
classpath="${driver.path}"
driver="${driver}"
url="${url}"
userid="${db.user}"
password="${db.pwd}"
print="true"
showheaders="false"
output="${dest}"
>
YOUR SQL STATEMENT !!
]]>
basedir="C:lib"
update="true"
/>
Re: Read (loop through) content of a file with Ant
Posted By:
dhinakaran_jani
Posted On:
Thursday, August 19, 2004 04:29 AM
Above mentioned answer will not work.I have already tried out.
Re: Read (loop through) content of a file with Ant
Posted By:
Murali_Velagapudi
Posted On:
Monday, August 9, 2004 08:13 AM
Stefan,
I too got the same requirement of reading line by line from another file which has list of file names ,and pass on them to the another task dynamically could you please post the same how did you got that i am trying using foreach but could not get so far. thanks for your help
,
Murali
Re: Read (loop through) content of a file with Ant
Posted By:
Anonymous
Posted On:
Tuesday, June 22, 2004 03:03 AM
Use ${line.separator} as delimiter.