What you are describing seems to indicate that all the profiles would be pre-provisioned. What I mean is that at some point in time (may be during the build of your product), something would have caused all those profiles to be created and all the bundles.info, etc. to have been written out. In a sense, this would be like if you have had multiple install of the product be done in different folder. If this is what you expect, then the closest concept that exist would be to use the -configuration cli argument that allows the user to create different configuration of eclipse (each config contains its own plugins).
HTH From: [email protected] [mailto:[email protected]] On Behalf Of Dileepa Jayakody Sent: January-21-13 7:00 AM To: [email protected] Subject: Re: [p2-dev] Loading different P2 Profiles during runtime Hi Pascal et al, Thanks for your inputs on this and clearing my doubts on P2-Profile concepts. Actually our requirement can be simplified with your explanation. What we are trying to achieve here is to have multiple P2-Profiles pre-installed in a product, have one of them as a default Profile which will load at product startup, and be able to switch the loaded P2-Profile by giving a parameter at startup. There could be profile-A, profile-B, profile-C pre-installed in the product. Each of these profiles has different sets of features installed. The default loading profile is profile-A. And at startup we should be able to select the profile (either profile-B or C) by giving a paramater, which will eventually load a different state of installation (different set of features) Do you think this is a valid usecase? Thoughts are welcome. Thanks, Dileepa On Sat, Jan 19, 2013 at 10:30 PM, <[email protected]<mailto:[email protected]>> wrote: Send p2-dev mailing list submissions to [email protected]<mailto:[email protected]> To subscribe or unsubscribe via the World Wide Web, visit https://dev.eclipse.org/mailman/listinfo/p2-dev or, via email, send a message with subject or body 'help' to [email protected]<mailto:[email protected]> You can reach the person managing the list at [email protected]<mailto:[email protected]> When replying, please edit your Subject line so it is more specific than "Re: Contents of p2-dev digest..." Today's Topics: 1. Re: Loading different P2 Profiles during runtime (Pascal Rapicault) 2. Re: Loading different P2 Profiles during runtime (Ian Bull) ---------------------------------------------------------------------- Message: 1 Date: Fri, 18 Jan 2013 18:48:28 +0000 From: Pascal Rapicault <[email protected]<mailto:[email protected]>> To: P2 developer discussions <[email protected]<mailto:[email protected]>> Subject: Re: [p2-dev] Loading different P2 Profiles during runtime Message-ID: <[email protected]<mailto:[email protected]>> Content-Type: text/plain; charset="us-ascii" Hi Dileepa, >From reading your note, I have the impression that you have your own notion of >profile that is different than the one from p2. As I said, the notion of profile used in p2 does not represent something to install, but the installed state. In your case, what I think you want to do is identify the set of features that constitute a profile and group them into one feature that you can easily identify for installation (and to present it to the user ?). Then when the user select such a feature, you uninstall any previously installed feature and install this feature in the runtime, and then you install the "target product". HTH Pascal From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Dileepa Jayakody Sent: January-17-13 3:29 PM To: [email protected]<mailto:[email protected]> Subject: Re: [p2-dev] Loading different P2 Profiles during runtime Hi Pascal et al, Sorry if I was unclear in my previous mail. Our requirement is to dynamically select the P2-Profile to load the target product. In different Profiles we have different sets of features installed and in runtime we need to give the user with an option of selecting the Profile to load the application. I think this is somewhat similar to reverting a profile to a earlier state? What we need is to switch between profiles during runtime and load different target products. I hope I made our intentions clear this time :) I found this [1] in Eclipse BugZilla which I think is somewhat inline with what we are trying to achieve. Appreciate any pointers on this. Thanks, Dileepa [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=287619 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dev.eclipse.org/mailman/private/p2-dev/attachments/20130118/54345601/attachment.html> ------------------------------ Message: 2 Date: Fri, 18 Jan 2013 10:54:06 -0800 From: Ian Bull <[email protected]<mailto:[email protected]>> To: P2 developer discussions <[email protected]<mailto:[email protected]>> Subject: Re: [p2-dev] Loading different P2 Profiles during runtime Message-ID: <cadunznwzaf9ugirmqp5k3v_xhm84t1hgsibby3kilbcv3vf...@mail.gmail.com<mailto:cadunznwzaf9ugirmqp5k3v_xhm84t1hgsibby3kilbcv3vf...@mail.gmail.com>> Content-Type: text/plain; charset="windows-1252" Targets have a special meaning in Eclipse, and they are "development time" artifacts. In particular, that bug you pointed to (bug 287619) is about using p2 profiles at development time, so I'm that will not help you with the runtime aspects. If what your trying to do is "pool" several different applications together (so they share a common set of bundles), and allow the user to choose which which application to start, I would structure this a multiple p2 profiles. You likely need to create your own "configurator" to start that application, but it should be possible. cheers, ian On Fri, Jan 18, 2013 at 10:48 AM, Pascal Rapicault < [email protected]<mailto:[email protected]>> wrote: > Hi Dileepa,**** > > ** ** > > From reading your note, I have the impression that you have your own > notion of profile that is different than the one from p2.**** > > As I said, the notion of profile used in p2 does not represent something > to install, but the installed state.**** > > ** ** > > In your case, what I think you want to do is identify the set of features > that constitute a profile and group them into one feature that you can > easily identify for installation (and to present it to the user ?). Then > when the user select such a feature, you uninstall any previously installed > feature and install this feature in the runtime, and then you install the > ?target product?.**** > > ** ** > > HTH**** > > ** ** > > Pascal**** > > ** ** > > *From:* [email protected]<mailto:[email protected]> > [mailto:[email protected]<mailto:[email protected]>] *On > Behalf Of *Dileepa Jayakody > *Sent:* January-17-13 3:29 PM > *To:* [email protected]<mailto:[email protected]> > *Subject:* Re: [p2-dev] Loading different P2 Profiles during runtime**** > > ** ** > > Hi Pascal et al, > > Sorry if I was unclear in my previous mail. > Our requirement is to dynamically select the P2-Profile to load the target > product. > In different Profiles we have different sets of features installed and in > runtime we need to give the user with an option of selecting the Profile to > load the application. > I think this is somewhat similar to reverting a profile to a earlier > state? What we need is to switch between profiles during runtime and load > different target products. > I hope I made our intentions clear this time :) > I found this [1] in Eclipse BugZilla which I think is somewhat inline with > what we are trying to achieve. > Appreciate any pointers on this. > > Thanks, > Dileepa > > [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=287619**** > > _______________________________________________ > p2-dev mailing list > [email protected]<mailto:[email protected]> > https://dev.eclipse.org/mailman/listinfo/p2-dev > > -- R. Ian Bull | EclipseSource Victoria | +1 250 477 7484<tel:%2B1%20250%20477%207484> http://eclipsesource.com | http://twitter.com/eclipsesource -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dev.eclipse.org/mailman/private/p2-dev/attachments/20130118/6422947c/attachment.html> ------------------------------ _______________________________________________ p2-dev mailing list [email protected]<mailto:[email protected]> https://dev.eclipse.org/mailman/listinfo/p2-dev End of p2-dev Digest, Vol 55, Issue 12 ************************************** -- Dileepa Jayakody, Software Engineer, WSO2 Inc. Lean . Enterprise . Middleware Mobile : +94777-857616
_______________________________________________ p2-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/p2-dev
