Bug 12028 - Zip is not updated when inserting a single file to an existing zip archive
Summary: Zip is not updated when inserting a single file to an existing zip archive
Status: RESOLVED DUPLICATE of bug 10755
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 06:10 UTC by Vladimir R. Bossicard
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir R. Bossicard 2002-08-26 06:10:48 UTC
To insert the LICENSE into the META-INF directory of a jar achive, I used to do:
        
<zip zipfile="${dist.dest}/${project.name}-${project.version}.jar"
     update="yes">
  <zipfileset dir="." includes="LICENSE" prefix="META-INF" />
</zip>

which works fine under 1.4.1 but not under 1.5 (the file is simply not updated).

my Java verison (should maybe upgrade to 1.4...)

java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
Comment 1 Juan Carlos Estibariz 2002-08-26 19:02:05 UTC
The zip task is refusing to add files to an existing zip file if this is newer that the files being added. A (not so good) workaround is to <touch> the files to be added.  This didn't happen in 1.5Beta3, I think is related to this change (from WHATSNEW):  Fixed bugs: -----------  * <zip> and friends would always update existing archive if you set   the update attribute to true.  
Comment 2 Stefan Bodewig 2002-09-03 16:05:36 UTC

*** This bug has been marked as a duplicate of 10755 ***