Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Loading different P2 Profiles during runtime

Hi All,

Actually as Ian has suggested in his reply (which I missed in my previous reply), our requirement can be simplified if we can have a shared 'bundle-pool' and start different products (different set of bundles) from that bundlepool at startup. 
So for each installed Profile we can have a corresponding bundles.info file and at startup we should be able to select the bundles.info to load a certain set of bundles from the shared bundle-pool.
Is this something that's already supported in eclipse? Does -configuration cli option support shared bundle-pool concept?
Appreciate if someone can point me to some resources/docs to get a better understanding on what I need to implement.

Thanks,
Dileepa




On Mon, Jan 21, 2013 at 10:30 PM, <p2-dev-request@xxxxxxxxxxx> wrote:
Send p2-dev mailing list submissions to
        p2-dev@xxxxxxxxxxx

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
        p2-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        p2-dev-owner@xxxxxxxxxxx

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)


----------------------------------------------------------------------

Message: 1
Date: Mon, 21 Jan 2013 16:04:54 +0000
From: Pascal Rapicault <pascal.rapicault@xxxxxxxxxxxx>
To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
Subject: Re: [p2-dev] Loading different P2 Profiles during runtime
Message-ID:
        <939C7E2761908043BC52E8082DC2D88B030427@xxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

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: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Dileepa Jayakody
Sent: January-21-13 7:00 AM
To: p2-dev@xxxxxxxxxxx
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, <p2-dev-request@xxxxxxxxxxx<mailto:p2-dev-request@xxxxxxxxxxx>> wrote:
Send p2-dev mailing list submissions to
        p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>

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
        p2-dev-request@xxxxxxxxxxx<mailto:p2-dev-request@xxxxxxxxxxx>

You can reach the person managing the list at
        p2-dev-owner@xxxxxxxxxxx<mailto:p2-dev-owner@xxxxxxxxxxx>

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 <pascal.rapicault@xxxxxxxxxxxx<mailto:pascal.rapicault@xxxxxxxxxxxx>>
To: P2 developer discussions <p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>>
Subject: Re: [p2-dev] Loading different P2 Profiles during runtime
Message-ID:
        <939C7E2761908043BC52E8082DC2D88B030001@xxxxxxxxxxxxxxxxxxxxxx<mailto:939C7E2761908043BC52E8082DC2D88B030001@xxxxxxxxxxxxxxxxxxxxxx>>
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: p2-dev-bounces@xxxxxxxxxxx<mailto:p2-dev-bounces@xxxxxxxxxxx> [mailto:p2-dev-bounces@xxxxxxxxxxx<mailto:p2-dev-bounces@xxxxxxxxxxx>] On Behalf Of Dileepa Jayakody
Sent: January-17-13 3:29 PM
To: p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>
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 <irbull@xxxxxxxxxxxxxxxxx<mailto:irbull@xxxxxxxxxxxxxxxxx>>
To: P2 developer discussions <p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>>
Subject: Re: [p2-dev] Loading different P2 Profiles during runtime
Message-ID:
        <CADUNznWzaF9Ugirmqp5K3v_XhM84t1hgSibBY3KiLBcv3VFBSw@xxxxxxxxxxxxxx<mailto:CADUNznWzaF9Ugirmqp5K3v_XhM84t1hgSibBY3KiLBcv3VFBSw@xxxxxxxxxxxxxx>>
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 <
pascal.rapicault@xxxxxxxxxxxx<mailto:pascal.rapicault@xxxxxxxxxxxx>> 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:* p2-dev-bounces@xxxxxxxxxxx<mailto:p2-dev-bounces@xxxxxxxxxxx> [mailto:p2-dev-bounces@xxxxxxxxxxx<mailto:p2-dev-bounces@xxxxxxxxxxx>] *On
> Behalf Of *Dileepa Jayakody
> *Sent:* January-17-13 3:29 PM
> *To:* p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>
> *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
> p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>
> 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
p2-dev@xxxxxxxxxxx<mailto:p2-dev@xxxxxxxxxxx>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/p2-dev/attachments/20130121/8597a03f/attachment.html>

------------------------------

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


End of p2-dev Digest, Vol 55, Issue 14
**************************************


Back to the top