Home » Eclipse Projects » Rich Client Platform (RCP) » The p2 update stuff
| |
Re: The p2 update stuff [message #502841 is a reply to message #502810] |
Wed, 09 December 2009 16:51   |
Eclipse User |
|
|
|
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 03:23   |
Eclipse User |
|
|
|
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 10:50   |
Eclipse User |
|
|
|
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 05:38   |
Eclipse User |
|
|
|
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 04:07] by Moderator
|
|
|
Re: The p2 update stuff [message #505654 is a reply to message #503190] |
Mon, 04 January 2010 03:33  |
Eclipse User |
|
|
|
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 03:35] by Moderator
|
|
|
Goto Forum:
Current Time: Wed Jun 18 11:56:12 EDT 2025
Powered by FUDForum. Page generated in 0.05467 seconds
|