In Ant how do you exclude a directory from copy or zip



I understand from the Ant manual how to create a <fileset> with nested
<exclude> elements. I can get it to exclude files that have names
matching a given pattern.

I would like to exclude certain entire directories. Not just the files
within the directory (that could be done with "<exclude
name="**/DIR_NAME/*"></exclude>"). I would like to exclude even the
directory itself from the root.

I've tried name="DIR_NAME".

I've considered using a "DirSet" instead of a "fileset" but it appears
that the copy and zip tasks do not support the DirSet element.

Thanks in advance for any help with this.

E

.