In Ant how do you exclude a directory from copy or zip
- From: "elektrophyte" <moctile@xxxxxxxxx>
- Date: 30 Sep 2005 12:18:16 -0700
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
.
- Follow-Ups:
- Re: In Ant how do you exclude a directory from copy or zip
- From: elektrophyte
- Re: In Ant how do you exclude a directory from copy or zip
- Prev by Date: Re: Retrieve Widnow Handle with Java
- Next by Date: Re: Jet Version 4.0 is out
- Previous by thread: JLayeredPane possible in BorderLayout.CENTER ?
- Next by thread: Re: In Ant how do you exclude a directory from copy or zip
- Index(es):