Thanks a lot DJ, will give it a try. On Mon, Nov 28, 2011 at 10:30 PM, <[email protected]> wrote:
> Send p2-dev mailing list submissions to > [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] > > You can reach the person managing the list at > [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: How to update feature based products (Eugen Reiswich) > 2. Re: P2 dropins monitoring facility (DJ Houghton) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 28 Nov 2011 17:05:54 +0100 > From: Eugen Reiswich <[email protected]> > To: P2 developer discussions <[email protected]> > Subject: Re: [p2-dev] How to update feature based products > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > Tanks Pascal, we'll give it a try. > > Eugen > > Am 28.11.2011 um 16:31 schrieb Pascal Rapicault: > > > A feature is always mapped to an IU that is suffixed with > ".feature.group", therefore what you are looking for should be in there. > > Are you trying out this code self hosting? > > > > On 2011-11-28, at 9:07 AM, Eugen Reiswich wrote: > > > >> Hi folks, > >> > >> I've got a feature based product containing 5 features. I would like to > update or uninstall each feature separately. But first I would like to know > what's installed. Using the following query I only get the product as a IU > result but I can't see my 5 features: > >> OperationFactory operationFactory = new > OperationFactory(); > >> IQueryResult<IInstallableUnit> > listInstalledElements = operationFactory > >> > .listInstalledElements(true, monitor); > >> Set<IInstallableUnit> ius = > listInstalledElements.query( > >> > QueryUtil.createIUGroupQuery(), null).toSet(); > >> > >> I already tried to change the query to: QueryUtil.createIUAnyQuery() > but this did not help either. I'm using Eclipse PDE to build my feature > based product. > >> > >> Eugen > >> > >> _______________________________________________ > >> p2-dev mailing list > >> [email protected] > >> https://dev.eclipse.org/mailman/listinfo/p2-dev > > > > _______________________________________________ > > p2-dev mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/p2-dev > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://dev.eclipse.org/mailman/private/p2-dev/attachments/20111128/f67382aa/attachment.htm > > > > ------------------------------ > > Message: 2 > Date: Mon, 28 Nov 2011 11:38:09 -0500 > From: DJ Houghton <[email protected]> > To: P2 developer discussions <[email protected]> > Subject: Re: [p2-dev] P2 dropins monitoring facility > Message-ID: > < > of2daa06d6.613d6116-on85257956.00592850-85257956.005b6...@ca.ibm.com> > Content-Type: text/plain; charset="us-ascii" > > > Installing bundles via the drop-ins exists only to support backwards > compatibility and isn't recommended going forward. You should investigate > using the director [1] for installing into your product. Bundles which > can't be installed are ignored because everything installed via the > drop-ins is considered optional. > > You can get debug level information by doing the following. You should see > information printed out in the console. > 1). create a file with the following contents: > org.eclipse.equinox.p2.core/debug=true > org.eclipse.equinox.p2.core/reconciler=true > 2). Run Eclipse with -debug <filename> > > There is some internal event notification code (IProvisioningEventBus) > which could be used to receive events when new things get installed, etc > but we don't have API for that yet. If you search for references to that > class and InstallableUnitEvent that might give you an idea of how it is > used. > > [1] > > http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html > > > > |------------> > | From: | > |------------> > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Dileepa Jayakody <[email protected]> > | > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | To: | > |------------> > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |[email protected] > | > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Date: | > |------------> > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |2011/11/28 06:36 AM > | > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Subject: | > |------------> > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |[p2-dev] P2 dropins monitoring facility > | > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Sent by: | > |------------> > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |[email protected] > | > > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > > > Hi all, > > We are using equinox p2 as the provisioning system in our osgi based > application platform. I have a requirement of monitoring the installation > process of the bundles in the dropins folder. After reading some > documentations I found out that dropins folder is scanned at the framework > initialization and dropins bundles are installed from there. However, AFAIK > it doesn't give a log of activities, errors in the dropins bundle > installation process. The bundles with errors are simply ignored. > > I would like to write a component to monitor the dropins by logging the > installation process. Can somebody please advice me on how to start working > on this? A reference to some relevant guides/documentations would be highly > useful and much appreciated. > > Thanks in advance, > Dileepa_______________________________________________ > p2-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/p2-dev > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://dev.eclipse.org/mailman/private/p2-dev/attachments/20111128/004292d0/attachment.htm > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: graycol.gif > Type: image/gif > Size: 105 bytes > Desc: not available > URL: < > https://dev.eclipse.org/mailman/private/p2-dev/attachments/20111128/004292d0/attachment.gif > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: ecblank.gif > Type: image/gif > Size: 45 bytes > Desc: not available > URL: < > https://dev.eclipse.org/mailman/private/p2-dev/attachments/20111128/004292d0/attachment-0001.gif > > > > ------------------------------ > > _______________________________________________ > p2-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/p2-dev > > > End of p2-dev Digest, Vol 41, Issue 17 > ************************************** > -- Dileepa Jayakody, Software Engineer, WSO2 Inc. Lean . Enterprise . Middleware
_______________________________________________ p2-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/p2-dev
