[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [p2-dev] How to get agent and profile object using p2 API
- From: "Todorova, Katya" <katya.todorova@xxxxxxx>
- Date: Mon, 9 Aug 2010 15:57:16 +0200
- Accept-language: en-US, de-DE
- Acceptlanguage: en-US, de-DE
- Delivered-to: email@example.com
- Thread-index: Acs1dsHnt5pO2k1gSb+Xg0YkAEC/bgCUqaxg
- Thread-topic: [p2-dev] How to get agent and profile object using p2 API
Since you are talking about standalone java application, I suppose it doesn't run in OSGi environment.
I don't think it's possible to use p2 functionality as pure java code (without OSGi framework running) or at least I haven't heard of anyone who has tried it.
Do you plan to start OSGi framework in your application?
Could you please provide more details about your runtime environment?
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Nayna Jain
Sent: Friday, August 06, 2010 5:48 PM
To: P2 developer discussions
Subject: Re: [p2-dev] How to get agent and profile object using p2 API
I have one doubt in this.
It seems like it is developed as a plugin. So, how do you execute this updater.
Is it used as a plugin to some other application.
Actually, I want to develop an installer based on p2 as an independent
standalone command line application.
So, in that case how do I get the bundle context and then Service Reference
Because in case of plugin, we have an Activator class which has
start(BundleContext context) method through which we can get the
But in case of standalone Java Application, how should I get it ?
Thanks & Regards,
- Nayna Jain
On 8/6/10, Todorova, Katya <katya.todorova@xxxxxxx> wrote:
> Here is the source of a simple installer using p2:
> You can use it as a reference:
> p2_minimal_src.zip.sda\equinox.p2\com.sap.p2.updater\ - this is the actual
> installer source path in the downloaded archive.
> I hope this helps.
> Kind regards,
> From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Nayna Jain
> Sent: Thursday, August 05, 2010 7:40 PM
> To: p2-dev@xxxxxxxxxxx
> Subject: [p2-dev] How to get agent and profile object using p2 API
> Hi everybody,
> I am trying to use p2 APIs to create a simple installer for my customized
> eclipse install.
> Can someone help me with the starting point for getting the agent object and
> then calling install API.
> Thanks & Regards,
> - Nayna Jain
> Don't believe the fear, uncertainity and doubts from people that have never
> tried it.
Don't believe the fear, uncertainity and doubts from people that have
never tried it.
p2-dev mailing list