Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 218623 - [prov] Generation of product IU from product file
Summary: [prov] Generation of product IU from product file
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Andrew Niefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 218639 218644 218649 218650 218672
Blocks:
  Show dependency tree
 
Reported: 2008-02-12 09:02 EST by Pascal Rapicault CLA
Modified: 2008-03-04 10:26 EST (History)
0 users

See Also:


Attachments
patch (15.49 KB, patch)
2008-03-03 15:10 EST, Andrew Niefer CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2008-02-12 09:02:01 EST
Our current approach to describe a product in the metadata revolve around the root IU which is a hack since it is an uber IU that requires every IU encountered during the execution of the metadata generator. 
Instead we should drive the creation of the product IU from a product file.
Comment 1 Andrew Niefer CLA 2008-02-12 11:39:41 EST
A .product file does not currently contain version numbers.  Generation should consult the pluginVersions.properties and featureVersions.properties files generated by pde.build.  These file contain the version numbers for everything included in the build and represent a better choice for version numbers than just guessing.
Comment 2 Andrew Niefer CLA 2008-03-03 15:10:50 EST
Created attachment 91431 [details]
patch

Patch to metadata.generator and pde.build

Patch adds a custom collector to the product query to only take one version for any IU (the highest version).  Patch also adds "version advice" which adds versions to the IUs included in the product.
Comment 3 Pascal Rapicault CLA 2008-03-04 10:26:23 EST
Patch released in HEAD.