Bug 273177

Summary: [publisher] No metadata generated for a product license
Product: [Eclipse Project] Equinox Reporter: Ian Bull <irbull>
Component: p2Assignee: Ian Bull <irbull>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, jeffmcaffer, nboldt, pascal
Version: unspecifiedKeywords: polish
Target Milestone: 3.5 M7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Adds the license section to the product parser
none
publisher patch for product license pascal: iplog+

Description Ian Bull CLA 2009-04-21 23:56:46 EDT
The publisher currently doesn't parse or generate metadata for the license information in a .product file.  Should it?  Do products have licenses, or should we just use the licenses of the bundles / features that constitute the project?
Comment 1 Ian Bull CLA 2009-04-22 00:03:33 EDT
Actually, it appears PDE export doesn't do anything with this either (not sure if it should).  For example, I just created a product, gave it a GPL license, exported it and rgreped the dir for GPL. nothing.

Chris, do you have thoughts on this?
Comment 2 Chris Aniszczyk CLA 2009-04-22 01:19:33 EDT
The publisher should take care of this imho.

A product can have an all encompassing license.
Comment 3 Ian Bull CLA 2009-04-22 11:29:39 EDT
I agree the publisher should take care of this when generating IUs.  Is this license only meant for IUs though?  
Comment 4 Pascal Rapicault CLA 2009-04-22 12:27:11 EDT
*** Bug 229880 has been marked as a duplicate of this bug. ***
Comment 5 Pascal Rapicault CLA 2009-04-22 23:12:55 EDT
Much like the license of the feature ends up in the IU, this license text should end up in the product IU. This would be a nice to have functionality.
Comment 6 Ian Bull CLA 2009-04-23 18:00:58 EDT
Created attachment 133033 [details]
Adds the license section to the product parser

This patch adds the parsing of licenses to the product parser. I still have to put this in the product publishing action.
Comment 7 Ian Bull CLA 2009-04-24 18:26:46 EDT
Created attachment 133204 [details]
publisher patch for product license

This patch adds the product license support to the publisher.  This is done through ILicenseAdvice.
Comment 8 Ian Bull CLA 2009-04-24 22:34:29 EDT
Since the license doesn't actually appear in the running product, it's not needed in the plugin.  
Comment 9 Pascal Rapicault CLA 2009-04-27 09:51:48 EDT
Fixed in HEAD.