ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: can filesets be stored in a properties file?
Date Fri, 08 Jun 2007 17:57:07 GMT

caleysoldman wrote:

[ ...]
> :arguing:
> regardless, what i did was create a working build ...all i really need to
> understand is how to move the fileset to an external file that will then be
> used based on the DBMS property which value is passed at the command line.
> thanks in advance for your help ant folx!
[ ... ]

if that's all you need, you can use <echo> task combined with the 
${toString:NameOfYourID} property, i.e.

<fileset id="myfileset" dir="C:/Test" includes="**/*.xml"/>

and later

<echo file="fileset.txt">${toString:myfileset}</echo>

write the files in a separated list to a file.

if you need another format, i.e


you can go via antcontrib =

pseudocode, see examples in the manual of antcontrib =

<for param="file">
your fileset
echo @{file}${line.separator}

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message