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

Bug 238169

Summary: A metadatarepo to represent a profile
Product: [Eclipse Project] Equinox Reporter: Simon Kaegi <simon_kaegi>
Component: p2Assignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: c.vidal, contact, pascal, pierre.gaufillet
Version: 3.4   
Target Milestone: 3.5 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
exploratory patch none

Description Simon Kaegi CLA 2008-06-23 16:09:05 EDT
Created attachment 105662 [details]
exploratory patch

On a number of occassions we've talked about treating a Profile as a metadata repo. In itself this is pretty easy to do but might have additional consequences in terms of URL format and interaction with roaming and shared profiles.

I've added an exploratory patch based on a quick conversation with Pascal at lunch. The patch adds a new metadata repo type to the engine bundle. The URL format is uses is file:/{path to your profile registry folder}?profileid={the profileid you want}

For example:
file:/C:/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry?profileid=SDKProfile

--
The artifact repos associated with the profile are automatically added and enabled as discovery sites as part of loading the profile metadata repo.
Comment 1 Pascal Rapicault CLA 2009-01-20 22:25:44 EST
Moving to M6 because I don't think this can be addressed in M5. Please try to get that early in M6 because  it may be a bit lengthy to settle down.
Comment 2 Simon Kaegi CLA 2009-02-10 12:53:25 EST
Fixed in HEAD.
The URIs for a profile repo must be file URIs, and end in ".profile".
Both the top-level profile folder and individual timestamped profiles are legal targets.

For example: file:/registry/SDKProfile.profile
For example: file:/registry/SDKProfile.profile/8675309.profile

are both legal.

Note: This repo does not provide artifacts -- just the metadata.
Comment 3 Simon Kaegi CLA 2009-02-10 18:04:56 EST
After talking with Pascal I've added back in artifact repo support.

Note: There currently is no support for roaming profile so if the CACHE or SHARED_CACHE properties in the profile are not valid those repos will not be added.