<fileset id="textfile" dir="dir" includes="*.txt"/>
<property id="txt" refid="textfile"/>

or with <pathconvert>

But from Ant´s point of view there could be multiple files!


Jan


> -----Ursprüngliche Nachricht-----
> Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 26. Januar 2005 14:24
> An: user@ant.apache.org
> Betreff: Load filename as property ?
> 
> 
> Hi,
> 
> i want the filename of a txtfile set as property.
> 
> The directory contains other files beside that txtfile.
> 
> example =
> 
> dir
>    file1.xxx
>    file2.txt
>    file3.xxx
>    file4.xxx
> 
> 
> The resulting property should be file2.txt
> 
> Any ideas ?
> 
> Gilbert
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to