ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5036] - Zip and friends task enhancement request
Date Tue, 04 Feb 2003 16:07:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5036>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5036

Zip and friends task enhancement request





------- Additional Comments From mmchenry@carnegielearning.com  2003-02-04 16:07 -------
Hm ... okay, let me try to explain in a bit more detail what I want to have
happen, and why I'm using these parameters settings -- if there is some other
combination of settings that makes more sense, just let me know.

The build I'm trying to set up needs to create a single .zip file with a certain
internal directory structure.  Since the final .zip file will contain nearly
8000 files, we've got things separated out in our CVS tree to keep the
individual groups of files to a manageable size.  Each group mirrors the
directory structure we want in the final .zip file.  So I'm using the <foreach>
ant-contrib task to iterate over each of the groups and add its contents to the
final .zip file.

The problem is that, since different developers are working separately on each
group, and adding new files from time to time, the build needs to detect when
files are duplicated in two different groups.

So my reasoning is this: I need 'update="true"' because I don't want my existing
.zip file to be blown away and re-created from scratch each time I try to add a
subgroup.  (The apache manual describes the update attribute as follows:
"indicates whether to update or overwrite the destination file if it already
exists.")

I need 'duplicate="fail"' so that an error is generated when the same file
exists in two different groups, and I need then figure out which developers to
annoy to get the name conflict resolved.

Basically, I intend to add an orthogonal set of files when I update the .zip
file, and if the set intersects at all with whatever is already in there, I want
ant to flag that as an error.

Mime
View raw message