ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject selecting empty directories
Date Wed, 20 Dec 2006 13:05:24 GMT
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" />

since the size selector only applies to files. any advice?

- p

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

View raw message