Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 159028

Summary: [JarProcessor] Support options controlling processing of nested jars
Product: [Eclipse Project] Platform Reporter: Andrew Niefer <aniefer>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Andrew Niefer <aniefer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: btripkov, dejan, jeffmcaffer, john.arthorne, kim.moir, sonia_dimitrov
Version: 3.3   
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 135044    
Attachments:
Description Flags
Extra verbose debugging info
none
new patch none

Description Andrew Niefer CLA 2006-09-27 16:24:20 EDT
The JarProcessor currently supports reading properties from META-INF/eclipse.inf to control the processing of the current jar.

We would like to be able to specify properties here that would control the processing of nested jars so that an eclipse.inf file does not need to be injected into each nested jar to do something special.

For example, we if do not want to sign org.apache.ant/lib/*.jar, we don't want to have to insert an eclipse.inf file into each of those nested jars.
Comment 1 John Arthorne CLA 2006-10-17 10:40:30 EDT
Created attachment 52123 [details]
Extra verbose debugging info

This patch to jarprocessor adds some extra information when the -verbose flag is added. Currently if a jar is skipped, you can't tell if it's because the file is corrupt, missing, or not conditioned.
Comment 2 Andrew Niefer CLA 2006-10-17 17:34:31 EDT
Created attachment 52167 [details]
new patch

Patch includes John's changes from previous patch.

This patch adds the following:
1)pack.properties now supported from directory input instead of just zip input.
2)Default pack200 arguments can now be set in the pack.properties using "pack200.default.args"
3)A jar's eclipse.inf can control processing of nested jars with the following properties:
jarprocessor.exclude.children : skip processing of nested jars
jarprocessor.exclude.children.pack : skip pack200 on nested jars
jarprocessor.exclude.children.sign : skip signing nested jars
pack20.default.args : default pack200 args for nested jars
Comment 3 Andrew Niefer CLA 2006-10-20 10:45:01 EDT
Branko, Dejan: Can one of you please look at this patch for release to HEAD.  A jarprocessor.jar containing these changes has been put on eclipse.org for testing of signing.
Comment 4 John Arthorne CLA 2006-11-16 16:08:44 EST
Pushing milestone. Branko, Dejan: please consider the above patch. This newer version is currently in production use on eclipse.org, so it would be good for it to be easily consumable by others.
Comment 5 Dejan Glozic CLA 2006-11-24 14:45:43 EST
Released.