ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kim1 <kim...@gmail.com>
Subject Getting directory/path information from a file
Date Wed, 05 May 2010 05:20:19 GMT

Hi all

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

<find / -name myfilename>

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

So. For example, myfile might be in either /mydir/here/DIRA or
/mydir/here/DIRB

Without checking both dirs (I think I can do an "exists" for each one and
take it from there) - is there an easy way to do this in ANT? Hope the
question makes sense!

Cheers
Kim
-- 
View this message in context: http://old.nabble.com/Getting-directory-path-information-from-a-file-tp28456836p28456836.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message