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

Bug 380051

Summary: CBI pull request for Platform for non-pom file changes
Product: [Eclipse Project] Platform Reporter: Thanh Ha <thanh.ha>
Component: RelengAssignee: Platform-Releng-Inbox <platform-releng-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrea.ross, daniel_megert, david_williams, igor, john.arthorne, pwebster, thanh.ha
Version: 4.2   
Target Milestone: 4.2.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 379747    

Description Thanh Ha CLA 2012-05-19 11:06:30 EDT
This is a pull request for reviewing the CBI non-pom modifications in Platform


R3 eclipse.platform:
08b3d22665f541ff327b9901c4e4966e9164fd2d
http://git.eclipse.org/c/cbi/eclipse.platform.git/commit/?h=R3_cbinopom&id=08b3d22665f541ff327b9901c4e4966e9164fd2d


R4 eclipse.platform:
3dfadf74c54b1543d70606cfaedfac3acb97f0d4
http://git.eclipse.org/c/cbi/eclipse.platform.git/commit/?h=R4_cbinopom&id=3dfadf74c54b1543d70606cfaedfac3acb97f0d4


eclipse.platform.team:
256544ad04796f7f44248b08c7a16361ffeb6b2e
http://git.eclipse.org/c/cbi/eclipse.platform.team.git/commit/?h=cbinopom&id=256544ad04796f7f44248b08c7a16361ffeb6b2e
Comment 2 Dani Megert CLA 2012-05-23 09:17:26 EDT
Can you please explain each of those changes, like e.g. adding
Import-Package: org.apache.xerces.parsers;version="0.0.0"
to /org.eclipse.update.examples/META-INF/MANIFEST.MF.

At this point (RC2), we should try to avoid such changes.
Comment 3 Thanh Ha CLA 2012-05-23 09:33:50 EDT
(In reply to comment #2)
> Can you please explain each of those changes, like e.g. adding
> Import-Package: org.apache.xerces.parsers;version="0.0.0"
> to /org.eclipse.update.examples/META-INF/MANIFEST.MF.
> 
> At this point (RC2), we should try to avoid such changes.

Igor made most of the modifications so I hope he can explain each one.


The one change I did make was adding build.properties to org.eclipse.license.

R3 eclipse.platform.releng:
daa3e46c24fb3b7a80bbfa93c346c8a74e921c9d
http://git.eclipse.org/c/cbi/eclipse.platform.releng.git/commit/?h=R3_cbinopoms&id=daa3e46c24fb3b7a80bbfa93c346c8a74e921c9d

R4 eclipse.platform.releng:
6d1408d8d3a1ad6bfef7e3698691d5bfc382951b
http://git.eclipse.org/c/cbi/eclipse.platform.releng.git/commit/?h=R4_cbinopoms&id=6d1408d8d3a1ad6bfef7e3698691d5bfc382951b


This change was necessary for Tycho to find what license files to be
included in features that reference the license feature. There was discussion on this in the cbi-dev mailing list. Link below.

http://dev.eclipse.org/mhonarc/lists/cbi-dev/msg00234.html
Comment 4 Dani Megert CLA 2012-05-23 10:56:05 EDT
We discussed this in the PMC decided that no changes except pom.xml addition should made for Juno at this point.
Comment 5 Igor Fedorenko CLA 2012-05-25 13:01:21 EDT
(In reply to comment #2)
> Can you please explain each of those changes, like e.g. adding
> Import-Package: org.apache.xerces.parsers;version="0.0.0"
> to /org.eclipse.update.examples/META-INF/MANIFEST.MF.
> 
> At this point (RC2), we should try to avoid such changes.

BuildZipPluginParser [1] uses classes from xerces. As far as I know xerces is not part of any standard bundle runtime execution environment and the only way to compile and run this bundle is to have explicit import on xerces. Let me know if you still have questions or concerns about this change.


[1] http://git.eclipse.org/c/cbi/eclipse.platform.git/tree/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
Comment 6 David Williams CLA 2012-08-15 02:25:16 EDT
(In reply to comment #5)
> (In reply to comment #2)
> > Can you please explain each of those changes, like e.g. adding
> > Import-Package: org.apache.xerces.parsers;version="0.0.0"
> > to /org.eclipse.update.examples/META-INF/MANIFEST.MF.
> > 
> > At this point (RC2), we should try to avoid such changes.
> 
> BuildZipPluginParser [1] uses classes from xerces. As far as I know xerces
> is not part of any standard bundle runtime execution environment and the
> only way to compile and run this bundle is to have explicit import on
> xerces. Let me know if you still have questions or concerns about this
> change.
> 
> 
> [1]
> http://git.eclipse.org/c/cbi/eclipse.platform.git/tree/update/org.eclipse.
> update.examples/src/org/eclipse/update/examples/buildzip/
> BuildZipPluginParser.java

We don't build org.eclipse.update.examples any more. Certainly not for Juno (4.2). And even if we did, we're not going to add xerces as a prereq! :)  (Just because we spent years getting rid of it). 

Plus, at least IBM's 1.4 JRE did have org.apache.xerces.* packages in it, and I think some of the sun JREs did too, but don't have them handy. 

So, given that, can you clarify what you need or what you are seeing? 

Are all the other commits in this bug still accurate/current? (That is, should I look at them one by one, or can you net it out for me?) 

Thanks!
Comment 7 David Williams CLA 2012-08-15 16:23:09 EDT
> 
> Plus, at least IBM's 1.4 JRE did have org.apache.xerces.* packages in it,
> and I think some of the sun JREs did too, but don't have them handy. 
> 

I looked in a few old Sun JRE's and couldn't find
org.apache.xerces.parsers.SAXParser
just renamed versions such as 
com.sun.org.apache.xerces.parsers.SAXParser

So, not sure how we ever compiled this "example" ... but, hopefully won't have to figure it out since not needed any longer? 

Let me know how I can help make progress on that issue (if it is still an issue).
Comment 8 John Arthorne CLA 2012-08-16 10:18:59 EDT
org.eclipse.update.examples should not be built and has already been deleted from master. What branches do we need to remove it from to make CBI work?
Comment 9 Thanh Ha CLA 2012-08-16 10:29:22 EDT
(In reply to comment #8)
> org.eclipse.update.examples should not be built and has already been deleted
> from master. What branches do we need to remove it from to make CBI work?

Is this change going to be part of SR1?

If so when we rebase the CBI platform build to SR1 it should pull in this change too and from the CBI side we just need to remove the pom file from the build.
Comment 10 John Arthorne CLA 2013-01-04 13:56:10 EST
(In reply to comment #9)
> (In reply to comment #8)
> > org.eclipse.update.examples should not be built and has already been deleted
> > from master. What branches do we need to remove it from to make CBI work?
> 
> Is this change going to be part of SR1?

Update.examples was removed before Juno SR1 in this commit:

http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?h=pwebster/R4_2_maintenance&id=9ea218ef9e86d5f00fe7d5bfc92c26b46b6c347f

> If so when we rebase the CBI platform build to SR1 it should pull in this
> change too and from the CBI side we just need to remove the pom file from
> the build.

I am going to mark this resolved then.