Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » The p2 update stuff
The p2 update stuff [message #502621] Wed, 09 December 2009 08:16 Go to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey all,

ok i´m nearly getting mad of that p2 update stuff, i found several tutorials in the internet but most of them are incomplete or simply doesnt work Confused Shocked Evil or Very Mad

Does anybody know a good and working tutorial with all steps, all dependencies and all facts i have to know, so i´m able to set up a working Software update mechanism with p2?

Or can help anybody with following problem:
I use following extension point: org.eclipse.equinox.p2.ui.sdk.install and the install dialog is shown, but there is no Combo to select my update site like in my eclipse IDE. When i look in my preferences, there are update sites defined and the ADD button is also missing... what i´m doing wrong? I read about the p2.inf, maybe this has something to do with???

Please help me, i nearly getting mad Sad Thanks a lot
Thomas

Re: The p2 update stuff [message #502810 is a reply to message #502621] Wed, 09 December 2009 18:44 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
Hi,

> ok i´m nearly getting mad of that p2 update stuff, i found several
> tutorials in the internet but most of them are incomplete or simply
> doesnt work :? 8o :evil:

I might be biased, but I like this one:
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
:)

I've recently followed the instructions myself step-by-step so I can confirm
this is complete and works.

If you find any problems or improvements, feel free to post a comment.

Greetings,

Ralf

--
http://www.ralfebert.de/blog/eclipsercp/
Re: The p2 update stuff [message #502841 is a reply to message #502810] Wed, 09 December 2009 21:51 Go to previous messageGo to next message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
Hi,

I was mad at the p2 update system too, because of the lack of
documentation I spend days (maybe weeks) to make it work. But it's
finally working now and I'm pretty happy with it. Just don't give up,
read 3 times all the tutorials and documentation you will find on
internet and here http://wiki.eclipse.org/Category:Equinox_p2 and you
will have a nice update system in your RCP app.

I can not write a whole howto to make p2 work (others have done that
very nicely) but if you have more specific question, i'll be glad to
help you.

Laurent Marchal.


Le 09/12/2009 12:44, Ralf Ebert a écrit :
> Hi,
>
>> ok i´m nearly getting mad of that p2 update stuff, i found several
>> tutorials in the internet but most of them are incomplete or simply
>> doesnt work :? 8o :evil:
>
> I might be biased, but I like this one:
> http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
> :)
>
> I've recently followed the instructions myself step-by-step so I can
> confirm this is complete and works.
>
> If you find any problems or improvements, feel free to post a comment.
>
> Greetings,
>
> Ralf
>
Re: The p2 update stuff [message #502888 is a reply to message #502810] Thu, 10 December 2009 08:23 Go to previous messageGo to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hi Ralf,

thanks for your answer. I already made your tutorial before i post the question, and indeed it was the best one i could find!

Anyway it didnt work because of the following problem: In Point 3, you mentioned that 2 new Menu points will appear, that didn´t happen for me, maybe because i have my own menus in my RCP Application. Nevertheless i added the "Install New Software" Command manually to my Menu. When i click on that Menu entry, the install dialog appears
but the Combobox where i can choose the update Site is not there at all. Its just missing.
I thought that this could be because i didnt define any update site, so i tried to define one using the preferences. But in the install site on the preferences dialog the "add" Button (and all others) are missing Sad
Whats wrong? What can i do? I already defined an update site via the New -> Update Site Project, but how can i integrate that site? Or is something else wrong?

Thanks alot.
Thomas


Ralf Ebert wrote on Wed, 09 December 2009 13:44
Hi,

> ok i´m nearly getting mad of that p2 update stuff, i found several
> tutorials in the internet but most of them are incomplete or simply
> doesnt work Confused Shocked Evil or Very Mad

I might be biased, but I like this one:
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
Smile

I've recently followed the instructions myself step-by-step so I can confirm
this is complete and works.

If you find any problems or improvements, feel free to post a comment.

Greetings,

Ralf

--
http://www.ralfebert.de/blog/eclipsercp/

Re: The p2 update stuff [message #502972 is a reply to message #502888] Thu, 10 December 2009 13:36 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
Is this reproducible? Did you tried this with your own application and did you
use the mail template If so, could you send me project so I can try to reproduce
this? (a participant in one of my training courses saw this once as well, but I
couldn't reproduce it).

The menu contributions are only added automatically if your help menu has the id
"help" assigned. Adding the commands manually should work as well.

--
http://www.ralfebert.de/blog/eclipsercp/
Re: The p2 update stuff [message #503029 is a reply to message #502888] Thu, 10 December 2009 15:50 Go to previous messageGo to next message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
Hello,

You need to use the p2.inf file to integrate your update site, as
described in the tutorial. The disabled buttons from the preferences
pages could be caused by the use of a p2 Policy that does not allow to
edit repositories :
http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_ RCP_Application
(search for CloudPolicy)

Hope this helps.
Laurent.

Le 10/12/2009 02:23, T. Wilhelm a écrit :
> Hi Ralf,
>
> thanks for your answer. I already made your tutorial before i post the
> question, and indeed it was the best one i could find!
>
> Anyway it didnt work because of the following problem: In Point 3, you
> mentioned that 2 new Menu points will appear, that didn´t happen for me,
> maybe because i have my own menus in my RCP Application. Nevertheless i
> added the "Install New Software" Command manually to my Menu. When i
> click on that Menu entry, the install dialog appears but the Combobox
> where i can choose the update Site is not there at all. Its just
> missing. I thought that this could be because i didnt define any update
> site, so i tried to define one using the preferences. But in the install
> site on the preferences dialog the "add" Button (and all others) are
> missing :( Whats wrong? What can i do? I already defined an update site
> via the New -> Update Site Project, but how can i integrate that site?
> Or is something else wrong?
>
> Thanks alot.
> Thomas
>
>
> Ralf Ebert wrote on Wed, 09 December 2009 13:44
>> Hi,
>>
>> > ok i´m nearly getting mad of that p2 update stuff, i found several >
>> tutorials in the internet but most of them are incomplete or simply >
>> doesnt work :? 8o :evil:
>>
>> I might be biased, but I like this one:
>> http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
>> :)
>>
>> I've recently followed the instructions myself step-by-step so I can
>> confirm this is complete and works.
>>
>> If you find any problems or improvements, feel free to post a comment.
>>
>> Greetings,
>>
>> Ralf
>>
>> --
>> http://www.ralfebert.de/blog/eclipsercp/
>
>
Re: The p2 update stuff [message #503190 is a reply to message #503029] Fri, 11 December 2009 10:38 Go to previous messageGo to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey all,

first of all thanks a lot for your help. The p2.inf file was missing and so i created one with 2 repositories. Now my update works but the Combobox is still not shown.
When i look at my preferences both repositories are shown, but also here the buttons to add/remove are not shown.

I agree with Laurent, that this is probably because of the policy. In the doc he send me are a lot information of the Policy, but there is no example.

Ok i found the examples at the end of the tutorial but anyway i cant check it out because our administrator is.... Confused

Does anybody have an example how to set up a custom Policy which makes the combo and buttons visible???

@Ralf Ebert
I have a question about your tutorial: i dont understand the sentence:

"Keep the old exported application folder, but rename it to something like mail_old. Also keep the repository. Export the deployable product so that the repository folder is updated with the artifacts."

What do you mean with "Export the deployable product" ? Do you mean that i have to do a new deployment or just export the feature as a Deployable Feature?

I exported my main feature (after increasing version number) as deployable feature and put it into my repository (a folder on my harddisk) which i defined in the p2.inf. Anyway if i check for updates he always tells me that there are no updates available.

Thanks alot!
Thomas

[quote title=Laurent Marchal wrote on Thu, 10 December 2009 10:50]Hello,

You need to use the p2.inf file to integrate your update site, as
described in the tutorial. The disabled buttons from the preferences
pages could be caused by the use of a p2 Policy that does not allow to
edit repositories :
http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_ RCP_Application
(search for CloudPolicy)

Hope this helps.
Laurent.

[Updated on: Fri, 11 December 2009 09:07]

Report message to a moderator

Re: The p2 update stuff [message #505654 is a reply to message #503190] Mon, 04 January 2010 08:33 Go to previous message
Li Junhong is currently offline Li JunhongFriend
Messages: 1012
Registered: July 2009
Senior Member
Hi Wilhelm,

I'm also mad at update function right now. Have your found the policy sample now?

Actually you can download it from :pserver:anonymous@dev.eclipse.org:/cvsroot/rt in org.eclipse.equinox/p2/examples directory. If you cannot download it, you can leave me your email address, let me send it to you.

Have you solved this problem already? Now I met the profile problem, I posted it here: http:// www.eclipse.org/forums/index.php?t=msg&goto=505652&# msg_505652. If you met or have solved this problem, could you leave me a message and share your experience? Thanks so much!

Best regards!
-------------------------------------
Li

[Updated on: Mon, 04 January 2010 08:35]

Report message to a moderator

Previous Topic:How to deal with profile problem during updating with p2?
Next Topic:Feature Tab in installation Details
Goto Forum:
  


Current Time: Sun Dec 21 03:21:42 GMT 2014

Powered by FUDForum. Page generated in 0.10326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software