ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhea <>
Subject how to exclude a basedir while looping using foreach
Date Mon, 31 Jan 2011 11:17:34 GMT

<target name="run">
	<foreach target="zip" param="folder-to-zip">
			<dirset dir="${basedir}"

My question is how do I exclude the basedir folder itself.
i want to zip only the sub directories and not the basedir.
When i use the above code it zips the base folder and then the inner

Have any ideas?
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message