> Is there a way to search for a file matching a condition and assign it to a
> variable ?
> 
> Basically I want something like :
> 
> <task dir="c:\mydir" filter="commons-io-*.jar" output_variable="my_variable"
> />
> 
> my_variable should contain the list of jar files in C:\mydir that match the
> pattern "commons-io-*.jar".


<fileset dir=C:/your/dir includes="commons-io-*.jar" id=yourid/>

now you have all those files that are matched by the includes
pattern in the property ${toString:yourid} for further processing ...

Regards, Gilbert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to