[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] How to get agent and profile object using p2 API

Hi Jain, 

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? 

Kind regards, 
Katya


-----Original Message-----
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

Hi Katya,

Thanks !!
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
BundleContext object.

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:
> Hi,
>
> Here is the source of a simple installer using p2:
> https://sapmats-de.sap-ag.de/download/download.cgi?id=890MWEA401A9TG27HR37WH1IGD12ATHMSDFNQE8MMA587CQ0E3
>
> 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,
> Katya
>
>
> ________________________________
> 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
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev