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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





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


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

Reply via email to