[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [equinox-dev] Small RCP example with p2
- From: "Westbury, Nigel" <Nigel.Westbury@xxxxxxxxxx>
- Date: Tue, 15 Apr 2008 15:13:02 -0600
- Accept-language: en-US
- Acceptlanguage: en-US
- Delivered-to: firstname.lastname@example.org
- Thread-index: Acie3EcQcvkrokZ5R164BTJjyVOxTAAW1hIA
- Thread-topic: [equinox-dev] Small RCP example with p2
Yes, you are not alone by being confused by this. Self-hosting and self-provisioning are not the same thing. Self-hosting is usually used to describe the process by which PDE starts up another workbench. If you look at org.eclipse.equinox.p2.selfhosting, you will see it is attempting to start both workspace and target bundles, which would only be applicable in a workspace hosted environment. Self-provisioning, on the other hand, is when an application modifies the running profile.
Anyway, this is the dev mailing list so it is probably best to take this offline, or move to the eclipse.technology.equinox newsgroup.
> -----Original Message-----
> From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Matthias Luebken
> Sent: Tuesday, April 15, 2008 3:37 AM
> To: equinox-dev@xxxxxxxxxxx
> Subject: RE: [equinox-dev] Small RCP example with p2
> I'm a little confused with this self-hosting issue. Now my example is
> IMHO a fairly common use-case: An RCP-App that updates itself or at
> least parts of itself. This should be done in an automated fashion
> (every morning at 6) or if the user triggers an update-action.
> John Arthorne wrote:
> > p2 doesn't currently have any API. About the best you can do at the
> > is to invoke the p2 command that opens the install dialog. [...]
> After grabbing the P2-Source and changing setting
> ProvSDKUIActivator.ANY_PROFILE to true as described in Bug 224658 
> I get the "Software-Updates"-Dialog! Great.
> Now I wonder if this is any good because the wiki  says:
> >We do not yet support a properly configured, self-hosted p2 system
> (see bug 224658). This means that if you
> > run a self-hosted workbench, the launched Eclipse will not be p2 aware.
> Nigel Westbury wrote:
> > In terms of a minimal repository, p2 does not itself define the site
> layout. This is abstracted out, so you can get as simple as you like. If
> >want something more minimal than the old update site or a p2 update
> site then just implement your own repository factory. [...]
> I would start with the minimal p2 update site. Extending
> MetadataRepositories and ArtifactRepositories seem to me to much for
> me right now. ;-)
> So I guess I restate my question:
> How would a minimal p2-update site look like? I am especially eager to
> set something up that shows that you don't need a feature anymore.
> Thanks for your help
>  : https://bugs.eclipse.org/bugs/show_bug.cgi?id=224658#c2
>  :
> equinox-dev mailing list