[ 
https://issues.apache.org/jira/browse/BUILDR-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934736#action_12934736
 ] 

Alex Boisvert commented on BUILDR-546:
--------------------------------------

I just tried the patch on my system (Ubuntu 9.10) and it appears the generated 
zip files are incompatible with Java's jar tool.

When I try to unzip a .jar, "jar xvf some.jar" I get:

java.util.zip.ZipException: invalid END header (bad central directory offset)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.zip.ZipFile.<init>(ZipFile.java:75)
        at sun.tools.jar.Main.list(Main.java:979)
        at sun.tools.jar.Main.run(Main.java:224)
        at sun.tools.jar.Main.main(Main.java:1149)


> Support for Rubyzip 0.9.4
> -------------------------
>
>                 Key: BUILDR-546
>                 URL: https://issues.apache.org/jira/browse/BUILDR-546
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.4.3
>            Reporter: Michael Guymon
>             Fix For: 1.4.3
>
>         Attachments: rubyzip_0.9.4_support.patch
>
>
> To support rubyzip 0.9.4, an override is needed to 
> Zip::ZipEntry#write_c_dir_entry to fix comments length error.
> This and other monkey patching to Zip::ZipEntry make other gems break (such 
> as warbler 1.2.1) if buildr uses autoload. While the monkey patches exist, 
> rubyzip will have to be required instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to