ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Getting directory/path information from a file
Date Wed, 05 May 2010 08:09:02 GMT
On 2010-05-05, kim1 <kimitj@gmail.com> wrote:

> I am trying to use ant to do something like the following unix command

> <find / -name myfilename>

<fileset dir="/" includes="**/myfilename"/>

> And then get the fully qualified directory location of the filename -
> and do other things with that.

If there is one - you can check with <resourcecount> you can use
<pathconvert> to get the absolute pathname.

Stefan

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


Mime
View raw message