ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy2008 <hoangt...@yahoo.com>
Subject Re: how to detect a file while looping thru a list of directories
Date Thu, 04 Mar 2010 17:03:19 GMT

Sorry, maybe I was not clear, in my code

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

there are alot of directories under c:\temp directory such as

c:\temp\dir1
c:\temp\dir2\test.xml
c:\temp\dir3

in this example, only dir2 has the test.xml in it so I only want to call the
target ABC for dir2  and skip the other directories

-- 
View this message in context: http://old.nabble.com/how-to-detect-a-file-while-looping-thru-a-list-of-directories-tp27775656p27783610.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