ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: find file in specify directory and its sub-directory
Date Tue, 07 Oct 2008 18:02:49 GMT
pathsep="${line.separator}"

--- Ben Tu <btu@adobe.com> wrote:

> Matt,
> This will returned the list of files separate with
> path separator.
> I want it returns a list of files as follow.
> 
> ${basedir}/com/abc/a.class
> ${basedir}/com/abc/b.class
> 
> Thanks, Ben
> 
> 
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> Sent: Tuesday, October 07, 2008 10:35 AM
> To: Ant Users List
> Subject: Re: find file in specify directory and its
> sub-directory
> 
> Are your sed commands trying to strip off the
> leading
> ./ , then escape dollar signs found?  If so, the
> second probably wouldn't be relevant:
> 
> <pathconvert>
>   <fileset dir="${basedir}" includes="**/*.class" />
>   <globmapper from="${basedir}/*" to="*" />
> </pathconvert>
> 
> Something like that?
> 
> HTH,
> Matt
> 
> --- Ben Tu <btu@adobe.com> wrote:
> 
> > Hi,
> > I would like to accomplish the similar task below
> in
> > ant script.
> > Does anyone know how?
> >
> > find . -name '*.class' | sed -e 's/^.\///g' -e
> > 's/\$/\\\$/g' | sort > log.txt
> >
> > thanks
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



      

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


Mime
View raw message