ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: can filesets be stored in a properties file?
Date Fri, 08 Jun 2007 18:04:53 GMT
Oh, is THAT what he meant?  :)

well, whatever...

--- Gilbert Rebhan <ant@schillbaer.de> wrote:

> 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
> 
> 



       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

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


Mime
View raw message