ant-user mailing list archives

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

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

file1
file2
file3
...


you can go via antcontrib =
http://ant-contrib.sourceforge.net/

pseudocode, see examples in the manual of antcontrib =
http://ant-contrib.sourceforge.net/tasks/tasks/for.html

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


Regards, Gilbert




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message