Home » Eclipse Projects » Rich Client Platform (RCP) » The p2 update stuff
The p2 update stuff [message #502621] |
Wed, 09 December 2009 08:16 |
|
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
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 Thanks a lot
Thomas
|
|
| |
Re: The p2 update stuff [message #502841 is a reply to message #502810] |
Wed, 09 December 2009 21:51 |
Laurent Marchal 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 |
|
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
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 #503029 is a reply to message #502888] |
Thu, 10 December 2009 15:50 |
Laurent Marchal 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 |
|
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....
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
|
|
| |
Goto Forum:
Current Time: Sun Sep 15 20:10:51 GMT 2024
Powered by FUDForum. Page generated in 0.04784 seconds
|