Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cross-project-issues-dev] A new "nested packed jars" report ...

I added a new report to the common repo "reports" page.

http://build.eclipse.org/simrel/kepler/reporeports/reports/verifydiroutput/nestedjars.txt

I suspect most projects are aware that Java 7 has trouble unpacking nested "packed jars". This is when a bundle that has been packed with pack200 (ends with "jar.pack.gz") has itself nested jars that have also been packed. This used to be just fine, even desirable, but due to fixes in Java 7, these are impossible/hard to correctly detect and unpack in equinox/p2. See bug 361628 [1].

You do not HAVE to fix these for Kepler, since p2 will "drop back" and use the plain jar, if it has trouble with the pack.gz file, but in some cases it might add a little wasted time, if users are using Java 7.

So, I thought some might appreciate the report. To fix, you can you an add an eclipse.inf file to your META-INF directory that has the contents
jarprocessor.exclude.children.pack=true
or
jarprocessor.exclude.children=true (if you want them neither packed, nor signed).

Note that we do still want the main bundle packed (and signed) .... this issue only relates to jars inside the main bundle.

Enjoy, I hope you find the report useful.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=361628

Back to the top