[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Can I do the Automatic Discovery & Update with Equinox p2?

I should also point you to this blog entry about adding p2 self-updating to an RCP app.
http://toedter.com/blog/?p=27

As described, this would accomplish what is needed, except that you would also want to set the auto-update preference on and the schedule as you desire for your app consumers.
See org.eclipse.equinox.internal.p2.ui.sdk.prefs.PreferenceConstants for the preference settings that are used. Hopefully it is self-explanatory using these constants and looking at AutomaticUpdatesPreferencePage in the same package. If not, let me know.

This would configure your app to self-update in the same way the SDK self-updates when the automatic updates pref page is set up for auto updating.
As I said before, this still notifies the user of updates and takes them to the update wizard to confirm updates.
If what you want is absolutely no user interruption (apart from a possible restart) then that requires some coding.

susan
Inactive hide details for Susan Franklin McCourt/Beaverton/IBM@IBMUSSusan Franklin McCourt/Beaverton/IBM@IBMUS




          Susan Franklin McCourt/Beaverton/IBM@IBMUS
          Sent by: p2-dev-bounces@xxxxxxxxxxx

          11/05/2008 05:14 PM
          Please respond to P2 developer discussions



To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
cc:
Subject: Re: [p2-dev] Can I do the Automatic Discovery & Update with Equinox p2?


I agree with everything Scott says about dynamic network discovery.

On the other hand, if you are talking about "discovering" updates from a known server, this is possible today with p2.
It involves including the p2 bundles in your RCP app, defining in advance what the update server is, and then setting an auto-updates preference so that the updates are presented to the user whenever they are found.

If you are talking about finding updates from a known server, and installing them without bothering the user at all...we don't do that now in the SDK since that almost always involves a restart and the user needs to decide when it happens. But it is possible today with the API, it would just take some custom code to find the updates and directly perform the install without going through the wizard.

So I guess the question...what is the specific scenario?

susan
Inactive hide details for Scott Lewis <slewis@xxxxxxxxx>Scott Lewis <slewis@xxxxxxxxx>

                  Scott Lewis <slewis@xxxxxxxxx>
                  Sent by: p2-dev-bounces@xxxxxxxxxxx

                  11/05/2008 04:55 PM
                  Please respond to slewis,P2 developer discussions



To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
cc: Markus Alexander Kuppe <markus.kuppe@xxxxxxxxxxx>
Subject: Re: [p2-dev] Can I do the Automatic Discovery & Update with Equinox p2?


Hi Frank,

There is an enhancement request to add ECF's discovery API (and some
discovery provider implementation) to network discover p2 repositories
in the Eclipse ui:  
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218534

In recent interactions with Susan (leading the p2 UI effort), it seems
likely that this capability will be inserted in 3.5 M5 timeframe.

Here is ECF's discovery API documentation:  

http://wiki.eclipse.org/ECF_API_Docs

I (Scott) have also created a couple of example apps that use discovery
API to publish and then discover available services.  I've also worked
on one for p2 discovery and then p2-based remote install scenarios for
Code9.

So I guess the upshot is:  p2 will soon do this (network-based discovery
at least)...but network discovery is not present as of 3.4.X stream.

Scott



Qixing Du wrote:
> Hey! After going through a lot of p2 marketing, I am still not clear
> if we can have the Automatic Discovery & Update of RCP application
> with p2.
>
> Could someone please show me some clues if we can do it? Any hint is
> highly appreciated!
>
> Thanks so much!
> Frank
> ------------------------------------------------------------------------
>
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/p2-dev
>  

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx

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

GIF image

GIF image

GIF image

GIF image