Under 1.5.2, this <zipfileset> element will not add the file to the zip file. It work Ok under 1.5.1
can you enter some details concerning your problem. zipfileset has been tested with ant 1.5.2
For the same build.xml, under Ant 1.5.2, it add the file to the zip the file size increase. However you cannot view using Winzip. Using pkzip25, you saw it under zip file but you cannot extract it. Under Ant 1.5.1, it work as expected. <zip destfile="${release.dir}/${build.product} _Release_${build.filelabel}.zip"> <fileset dir="${build.dir}" includes="${build.versionfile}" /> <fileset dir="${release.dir}" includes="${build.product} _Release_${build.filelabel}_Notes.doc" /> <zipfileset dir="${release.dir}/${product.package.dir}" prefix="${product.package.dir}" /> </zip>
this looks like the same problem as bug# 17675
the line 540 of Zip.java should be fixed : - fileMode = zfs.getDirMode(); + fileMode = zfs.getFileMode();
Hope this fix going to next release 1.5.3.
I download the source code for Ant 1.5.2 and cound not find line 540. I thought it may be the line 520 of file C:\apache-ant-1.5.2\src\main\org\apache\tools\ant\taskdefs\Zip.java dated 02/28/2003 . I'm using the TextPad 4.6 as editor. Compiled under Windows 2000 and Java 2 SDK version 1.4.1_02 and tested. It worked.
sorry it is line 467 actually from / src / main / org / apache / tools / ant / taskdefs / Zip.java Revision: 1.78.2.11 in the procedure protected final void addResources(FileSet fileset, Resource[] resources, ZipOutputStream zOut)
*** Bug 17675 has been marked as a duplicate of this bug. ***
setting the target milestone to 1.6, but I get the feeling that a 1.5.3 is warranted. I've applied Antoine's patch, could you please verify that the problem is fixed by using the next nightly build (no earlier than 2003-03-08).
*** Bug 15286 has been marked as a duplicate of this bug. ***
*** Bug 17730 has been marked as a duplicate of this bug. ***
*** Bug 17923 has been marked as a duplicate of this bug. ***
*** Bug 18196 has been marked as a duplicate of this bug. ***
*** Bug 18600 has been marked as a duplicate of this bug. ***
*** Bug 18608 has been marked as a duplicate of this bug. ***
*** Bug 18768 has been marked as a duplicate of this bug. ***
*** Bug 18809 has been marked as a duplicate of this bug. ***