You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by pa...@sadalbari.com on 2006/12/20 14:05:24 UTC
selecting empty directories
hi all,
how do you select empty directories/folders? (a directory which has no files or
folders in it?)
i don't want to exclude them, i want to list and warn about them (so <copy
includeEmptyDirs="no"> is no help).
i've tried dozens of options, faq, etc. and many convoluted attempts later, i'm
left looking at what seems the most logical answer, but doesn't work:
<dirset dir="." id="empty.dirs">
<size value="0" when="equal" />
</dirset>
since the size selector only applies to files. any advice?
thanks,
- p
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: selecting empty directories
Posted by Matt Benson <gu...@yahoo.com>.
It might be easiest to write a custom File or Resource
selector. Ant probably should ship with some way to
accomplish this however. :|
-Matt
--- paul.arzul@sadalbari.com wrote:
> hi all,
>
> how do you select empty directories/folders? (a
> directory which has no files or
> folders in it?)
>
> i don't want to exclude them, i want to list and
> warn about them (so <copy
> includeEmptyDirs="no"> is no help).
>
> i've tried dozens of options, faq, etc. and many
> convoluted attempts later, i'm
> left looking at what seems the most logical answer,
> but doesn't work:
>
> <dirset dir="." id="empty.dirs">
> <size value="0" when="equal" />
> </dirset>
>
> since the size selector only applies to files. any
> advice?
> thanks,
>
> - p
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org