You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Murray, Mike" <mb...@ptc.com> on 2011/02/01 01:29:40 UTC
RE: how to exclude a basedir while looping using foreach
You could try something like includes="*", but I'm not sure of the
intent of your excludes.
-----Original Message-----
From: rhea [mailto:karissacabs27@gmail.com]
Sent: Monday, January 31, 2011 5:18 AM
To: user@ant.apache.org
Subject: how to exclude a basedir while looping using foreach
<target name="run">
<foreach target="zip" param="folder-to-zip">
<path>
<dirset dir="${basedir}"
excludes="**/js,**/assets,**/assets/images,**/assets/swf,**/pdf,**/asset
s/music,**/assets/pdf"/>
</path>
</foreach>
</target>
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
directories.
Have any ideas?
--
View this message in context:
http://ant.1045680.n5.nabble.com/how-to-exclude-a-basedir-while-looping-
using-foreach-tp3364313p3364313.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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: how to exclude a basedir while looping using foreach
Posted by rhea <ka...@gmail.com>.
i tried everything else earlier but not "*" what does "*" actually stand for?
--
View this message in context: http://ant.1045680.n5.nabble.com/how-to-exclude-a-basedir-while-looping-using-foreach-tp3364313p3365698.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
RE: how to exclude a basedir while looping using foreach
Posted by rhea <ka...@gmail.com>.
Thanks alot that really helped and I dint even have to add the excludes
statement.
--
View this message in context: http://ant.1045680.n5.nabble.com/how-to-exclude-a-basedir-while-looping-using-foreach-tp3364313p3365697.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