Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » P2 director and update sites used for provisioning
P2 director and update sites used for provisioning [message #1783788] Sat, 17 March 2018 11:19 Go to next message
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 104
Registered: March 2010
Senior Member
Can P2 director pre-configure repositories used for provisioning into the installation? When I run the org.eclipse.equinox.p2.director application and use for instance:

-repository http://download.eclipse.org/releases/oxygen,http://download.eclipse.org/tools/cdt/releases/9.4,http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases


...to install:

-installIU org.eclipse.platform.ide,org.eclipse.jdt.feature.group,org.eclipse.cdt.feature.group,org.eclipse.m2e.feature.feature.group,org.eclipse.egit.feature.group,org.eclipse.xtext.sdk.feature.group,org.eclipse.xtend.sdk.feature.group


...this is all fine and gets the new CDT 9.4.2 and the newer Xtext/Xtend 2.13 (from the added update site). But when I launch eclipse the update sites used (http://download.eclipse.org/tools/cdt/releases/9.4,http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases) are treated inconsistently. When I go to "Preferences --> Install/Update --> Available Software Sites" I see:

- the CDT repository is present but disabled
- the Xtext/Xtend repository is missing altogether

Is it possible to get P2 director to have them both present and enabled? What controls this behaviour?

Re: P2 director and update sites used for provisioning [message #1784027 is a reply to message #1783788] Wed, 21 March 2018 17:46 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 786
Registered: January 2012
Senior Member

Those values are stored in the p2 profile settings, found in your installation under p2/org.eclipse.equinox.p2.engine/profileRegistry/<<PROFILE>>.profile/.data/.settings. There are two pref files, one for artifact repositories and the other for metadata repositories.

The p2 director doesn't seed these preferences from the provided repositories: I installed an IU from a local `file:`-based p2 repository and that location was not written out. Rather these values are seeded by p2 `addRepository()` touchpoints.

Any update sites added via the p2 UIs (like Install New Software) are added to these lists too.

If you're interested, you could submit a patch to the p2 director to add the repositories to the list. For example, with an argument like "-remember".

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: P2 director and update sites used for provisioning [message #1784197 is a reply to message #1784027] Fri, 23 March 2018 12:09 Go to previous messageGo to next message
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 104
Registered: March 2010
Senior Member
Hi Brian, thank you for your reply.

It seems like a reasonable feature and an easy-enough thing to do. I will take a jab at it when I'm ready.

I'll need to check if I need to re-certify my CLA as I haven't contributed in a while. I should also set up my development workspace as I no longer have it, there used to be a document describing how to do that for the Eclipse platform.

Either way I recall I had to find a sponsor to review/pull the change at some point. Would you be able to do that? What would be the proper developer mailing list to reach out to when I'm ready to work?
Re: P2 director and update sites used for provisioning [message #1784324 is a reply to message #1784197] Mon, 26 March 2018 18:56 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 786
Registered: January 2012
Senior Member

I'm not a committer on p2, so I can't help. I'd suggest posting to the p2-dev mailing list.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Wrong bundle loaded after update on macosx
Next Topic:Customizing binary files
Goto Forum:
  


Current Time: Wed Nov 14 09:17:27 GMT 2018

Powered by FUDForum. Page generated in 0.03094 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top