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)
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.
*** This bug has been marked as a duplicate of 10755 ***