ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50115] ZIP emits wrong message and creates corrupt archive when resource collections used
Date Fri, 29 Oct 2010 15:23:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50115

--- Comment #3 from Stefan Bodewig <bodewig@apache.org> 2010-10-29 11:23:20 EDT ---
I see the same bogus warning message and will look into fixing it.

That you don't get test2 in the second case is correct, in a way.  <fileset> is
a set of files not dirs.  For historical reasons some task (including zip)
provide special handling for filesets where they also consult directories
matched by the patterns, but as a general rule you should assume only files
will be in it - and that's what you get when you wrap it into <resources>.

In order to include empty directories as well, you must use a union
of the fileset and a dirset.  Non-empty directories (or rather directories
containing files matched by the fileset) will be included since the zip task
adds the parent directories for files by default.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message