Community
Participate
Working Groups
Something that concerns me about this code is that it seems to depend on each line continuation being in the form of "\r\n " but I do believe the manifest can have newline specified as \r\n | \n | \r Perhaps the standard jar command always uses \r\n See bug342853 comment11
I am using buckminster to generate an RCP appliation which is signed, so that I can implement OSGi Security. For some reason, a few of the JARs which are signed are terminated with \n, while most are \r\n. If you follow the specification, according to http://download.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Index%20File%20Specification you will see that a signature manifest can have line continuations terminated with \r\n, | \n | \r I noticed this problem while using the P2 Director application in order to install this P2 application from a P2 Repository, and getting an exception that a file had been removed from one of the bundles, one was like Something.lass This led me to find that the current processing code was removing one of the characters from any file that was longer than 72 characters to list, and had a line termination of a \n. This was indeed the case.
Fixed with the following commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=d53dcdd9966ba8c5365fbf22a85a18915c6c2931