On Thu, 14 Aug 2003, Daniel Nehren <[EMAIL PROTECTED]> wrote: > I am writing a task that will iterate thorough all the > sub-directories in a directory and executing a certain number of > tasks. I could not find any task out there that does that.
To a certain degree <apply> does, as does the new (only in CVS) <subant/>. But both are specialized to do <exec/> and <ant/> respectively. ant-contrib's <foreach/> does what you want by invoking a <target> that can contain arbitrary tasks passing the directory as parameter. The brand new <macrodef/> may be an inspiration to see how you can do what you want in Ant 1.6 - and certainly Peter Reilly's in-house, yet-to-be-published new <foreach/> will be exactly what you want. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]