ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hariharasudhan R" <har...@gmail.com>
Subject Re: Is there a way to search for a file matching a condition and assign it to a variable ?
Date Tue, 15 Jan 2008 19:46:46 GMT
Hi Gilbert,

I am also not familiar with the "${toString:yourid} " syntax.
Is there some place where I can read up about this ?

once again. thanks  for your help!

thanks,
Hari

On Jan 16, 2008 1:15 AM, Hariharasudhan R <hari19@gmail.com> wrote:

> 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 <ant@schillbaer.de> 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: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message