ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Greenlee" <CGreen...@demandsolutions.com>
Subject Calling ant on every directory in a fileset
Date Thu, 26 Apr 2001 17:54:58 GMT

I'm trying to write an ant build file to invoke another ant build file
on each directory in a certain directory.  For example, if this were my
directory structure:

/a
/a/b
/a/c
/a/d

I would want to invoke an ant script to perform a task on /a/b, /a/c,
and /a/d.  I don't know ahead of time what directories will exist in /a,
so I can't hard code them.

I attempted to use "execon" like this:

		<execon executable="ant.bat" type="dir">
			<arg line="-buildfile package.xml
-Dpackage.name="/>
			<srcfile/>
			<fileset dir="deploy/packages"
defaultexcludes="false">
				<include name="*"/>
			</fileset>
		</execon>

This fails, however, because execon places a space after the arg line.  

Does anyone have any suggestions?

Cheers,

Chris Greenlee

Mime
View raw message