Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

how to detect a file while looping thru a list of directories

Andy2008

2010-03-03

Replies: Find Java Web Hosting

Author LoginPost Reply

I want to loop thru a list of directories and only call a target called "ABC"
if a directory contains a "test.xml" file. below is my initial code

<foreach target="ABC" param="ABCParam">
   <path>
       <dirset dir="c:\temp"/>
     </path>
</foreach>

Do you have any ideas?

Thanks
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.