Hi Gilbert,

That worked. Many Thanks!

The doc for fileset ( http://ant.apache.org/manual/CoreTypes/fileset.html )
does not list id as one of the attributes.
Is it an undocumented feature ?
btw, I am using JDK 5.0u14 and Ant 1.6.5 on windows xp.

thanks,
Hari

On Jan 16, 2008 1:07 AM, Gilbert Rebhan <[EMAIL PROTECTED]> wrote:

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