ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <>
Subject Re: jarsigner 1.5 and Ant zip
Date Thu, 23 Aug 2012 09:20:42 GMT
And this tests might be related too:,label=Ubuntu/lastCompletedBuild/testReport/,label=Ubuntu/lastCompletedBuild/testReport/

It fails on my Mac too.
java 1.5 doesn't seem to be able to read the jar produced by the jar task. I tried, with the
same content, jaring with the jar command, and java runs fine.


Le 23 août 2012 à 00:57, Nicolas Lalevée a écrit :

> Hi,
> Our test suite seems to fail quite consistently on jar signing, but only with the jvm
1.5, Windows or Ubuntu. I have tested locally on my Mac, it fails too.
> With verbose turned on, here is what I see:
> [au:antunit] Signing JAR: /Users/hibou/dev/ant/svn/core/trunk/build/antunit/tmp/testoutput/signtest.jar
to /Users/hibou/dev/ant/svn/core/trunk/build/antunit/tmp/testoutput/signtest.jar as testonly
> [au:antunit] Current OS is Mac OS X
> [au:antunit] Using input string
> [au:antunit] Executing '/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/jarsigner'
with arguments:
> [au:antunit] '-keystore'
> [au:antunit] '/Users/hibou/dev/ant/svn/core/trunk/src/etc/testcases/testkeystore'
> [au:antunit] '/Users/hibou/dev/ant/svn/core/trunk/build/antunit/tmp/testoutput/signtest.jar'
> [au:antunit] 'testonly'
> [au:antunit] 
> [au:antunit] The ' characters around the executable and arguments are
> [au:antunit] not part of the command.
> [au:antunit] Got IOException reading file "/Users/hibou/dev/ant/svn/core/trunk/build/antunit/tmp/testoutput/signtest.jar"
central directory zip64 extended information extra field's length doesn't match central directory
data.  Expected length 0 but is 16
> [au:antunit] Build sequence for target(s) `tearDown' is [tearDown]
> As far I can tell, the jar signing goes well. But them it is the 'issigned' task which
fail to read the jar properly.
> I have tested to unzip the jar with several tools, no issue. Just Ant fails.
> An expert in zip file compression format should probably have a look into it :)
> By the way, here is the jar:
> Nicolas
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message