You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tim Vernum <Ti...@macquarie.com.au> on 2001/05/04 04:00:40 UTC
RE: Calling ant on every directory in a fileset
From: Chris Greenlee [mailto:CGreenlee@demandsolutions.com]
> I'm trying to write an ant build file to invoke another ant build file
> on each directory in a certain directory.
>
> Does anyone have any suggestions?
I submitted a foreach task to ant-dev last week.
(Let me know if you want a copy)
You would be able to use that.
It would be something like:
<target name="call-ant">
<ant buildfile="package.xml">
<param name="package.name" value="${dir.name}"/>
</ant>
</target>
<target name="package">
<foreach>
<param name="dir.name">
<fileset dir="deploy/packages" defaultexcludes="false">
<include name="*"/>
</fileset>
</param>
</foreach>
</target>