ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Using <include> and <exclude> to include a previously excluded name in a fileset
Date Wed, 29 Oct 2008 17:28:49 GMT
On Wed, Oct 29, 2008 at 12:16 PM, David Weintraub <qazwart@gmail.com> wrote:
> I have a fileset that looks like this:
>
> <fileset dir="${target.dir}">
>    <exclude name="archive/**" />
> </fileset>
>
> The problem is that I have the following structure:
>
> ${target.dir}
>    archive
>        tarball.tar.gz
>    work
>    clients
>         archive
>             tarball.tar.gz
>    foo
>
> The purpose of the fileset was to exclude the "archive" directory
> directly under ${target.dir} (and the tallballs in it), but I do want
> to include the "archive" directory under the "clients" directory.
> However, my fileset now excludes both. Anyway I can specify to keep
> one, but not the other?

Hmmm, are you sure there isn't something else going on? (like the
defaultexcludes would have *.gz in them?)

Because otherwise it should behave as you expect it seems to me. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message