https://issues.apache.org/bugzilla/show_bug.cgi?id=56099
Bug ID: 56099
Summary: Zip task inserting unwanted space in zip file
Product: Ant
Version: 1.9.2
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31278
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31278&action=edit
This is an epb created with a prior version of ant that shows the correct
header, notice there is no space between the mimetype declaration and the text
of the mimetype.
Recently upgraded to 1.9.2. Before ugrade the ZIP taks created the epub
correctly, now there is extra characters in the zip header, which the epub
validator objects to. I have not changed anything in the build except ant.
I am building epub(zip) files with an ant task. Here it is
<!-- have to create the uncompressed and compressed seperatly -->
<zip destfile="@{sourceDir}/book.mimetype"
compress="false" encoding="UTF-8" basedir="@{sourceDir}/epub"
includes="mimetype"/>
<zip destfile="@{sourceDir}/book.zip"
compress="true" level="9" encoding="UTF-8" basedir="@{sourceDir}/epub"
includes="OEBPS/ META-INF/"/>
<!-- put um together -->
<zip
destfile="@{sourceDir}/@{bookDir}.epub" update="true" keepcompression="true"
encoding="UTF-8">
<zipfileset
src="@{sourceDir}/book.mimetype"/>
<zipfileset
src="@{sourceDir}/book.zip"/>
</zip>
I have attached hex views of the correct zip and the 1.9.2 version.
--
You are receiving this mail because:
You are the assignee for the bug.