ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30517] - [signjar] : uptodate enhancements
Date Sat, 07 Aug 2004 08:23:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30517>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30517

[signjar] : uptodate enhancements





------- Additional Comments From bluemoon@xs4all.nl  2004-08-07 08:23 -------

I was mistaken at point 2 !
If jarsigner is ordered to -internalsf it will create a sigfile
depending on the 'alias'. 

from the docs :
If no -sigfile option appears on the command line, the base file name for the
.SF and .DSA files will be the first 8 characters of the alias name specified on
the command line, all converted to upper case.

I had a alias name of 9 characters !! So the check in isSigned didn't work.

Please change code in 'ifSigned(File file)' to :
   String entryName = SIG_START + alias.substring(0, 8).toUpperCase() + SIG_END;
   return jarFile.getEntry(entryName) != null;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message