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 26227] New: - <zip> task should allow overwrite when updating an existing zip file
Date Sun, 18 Jan 2004 07:52:51 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=26227>.
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=26227

<zip> task should allow overwrite when updating an existing zip file

           Summary: <zip> task should allow overwrite when updating an
                    existing zip file
           Product: Ant
           Version: 1.6.0
          Platform: Other
               URL: http://ant.apache.org/manual/CoreTasks/zip.html
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: apache-bugzilla@seansullivan.com


The <zip> task has an attribute called 'duplicate'

In Ant 1.6.0, 'duplicate' can be set to 1 of 3 values: 

  "add"
  "preserve"
  "fail"

I would to see a fourth option:  "overwrite"

Source file: org/apache/tools/ant/taskdefs/Zip.java

The Zip class contains an inner class called "Duplicate"

The Duplicate class defines this method:

public String[] getValues() {
            return new String[] {"add", "preserve", "fail"};
}

It would be great if this array offered the fourth option: "overwrite"

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


Mime
View raw message