Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Tutorial: p2 updates for Eclipse RCP applications
Tutorial: p2 updates for Eclipse RCP applications [message #493450] Mon, 26 October 2009 06:51 Go to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 72
Registered: July 2009
Member
Hi,

I just wrote a tutorial about how to use the Equinox p2 provisioning
system for updating Eclipse RCP applications:

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

Thought you might be interested in this and would be glad to hear your
comments/feedback.

Greetings,

Ralf
Re: Tutorial: p2 updates for Eclipse RCP applications [message #493470 is a reply to message #493450] Mon, 26 October 2009 08:37 Go to previous messageGo to next message
Benjamin Zeiss is currently offline Benjamin Zeiss
Messages: 29
Registered: July 2009
Junior Member
Nice tutorial! Certainly a good addition to the other ones that are
around. I'm still wondering though about the permission problem i have
pointed out here:

news://news.eclipse.org:119/hamnvt$s5$1@build.eclipse.org

It's funny enough that all RCP example apps around (for example the MP3
Manager from Kai Tödter) seem to suffer from this problem and yet nobody
seems to acknowledge it. Probably too many people are still working on
Windows XP while the problem only happens on Vista and Windows 7. I'd be
happy to write a bugzilla report if there was just somebody who
confirmed the problem.

Benjamin

Ralf Ebert schrieb:
> Hi,
>
> I just wrote a tutorial about how to use the Equinox p2 provisioning
> system for updating Eclipse RCP applications:
>
> http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
>
> Thought you might be interested in this and would be glad to hear your
> comments/feedback.
>
> Greetings,
>
> Ralf
Re: Tutorial: p2 updates for Eclipse RCP applications [message #493471 is a reply to message #493470] Mon, 26 October 2009 08:43 Go to previous messageGo to next message
Benjamin Zeiss is currently offline Benjamin Zeiss
Messages: 29
Registered: July 2009
Junior Member
Hm, the usenet link didn't work for me. Here is the weblink:

http://www.eclipse.org/forums/index.php?t=msg&th=155697& amp;start=0

By the way, if you intend to test the problem i am talking about, for
example, with the MP3 Manager, don't be fooled by running the software
by launching it from the installer directly. The installer grabs the
necessary priviliges from this UAC system when it is executed and the
process launched from the installer still owns these priviliges. With
other words, terminate the installer first and then execute the program
with normal user priviliges.

Ben

Benjamin Zeiss schrieb:
> Nice tutorial! Certainly a good addition to the other ones that are
> around. I'm still wondering though about the permission problem i have
> pointed out here:
>
> news://news.eclipse.org:119/hamnvt$s5$1@build.eclipse.org
>
> It's funny enough that all RCP example apps around (for example the MP3
> Manager from Kai Tödter) seem to suffer from this problem and yet nobody
> seems to acknowledge it. Probably too many people are still working on
> Windows XP while the problem only happens on Vista and Windows 7. I'd be
> happy to write a bugzilla report if there was just somebody who
> confirmed the problem.
>
> Benjamin
>
> Ralf Ebert schrieb:
>> Hi,
>>
>> I just wrote a tutorial about how to use the Equinox p2 provisioning
>> system for updating Eclipse RCP applications:
>>
>> http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/
>>
>> Thought you might be interested in this and would be glad to hear your
>> comments/feedback.
>>
>> Greetings,
>>
>> Ralf
Re: Tutorial: p2 updates for Eclipse RCP applications [message #493641 is a reply to message #493450] Tue, 27 October 2009 08:53 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan Kohnert
Messages: 192
Registered: July 2009
Senior Member
Thank you for this nice tutorial!
Unfortunately I can not follow you instructions. I did everything just like you did, but my exportet product does not contain any p2 or dropins folder as you showed here:
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial/ exported_files.png

I'm using Eclipse :3.5.1.R35x_v20090811-7Q7bAIBPVUBVbKSMTyyfpOteKTem7_g2paS1__ z-Rrmf4

I do not want to use the p2 UI! I just want a folder where I can drop plugins into using the filesystem. (Also using the UI is an option, its just not the most important point for me.)

Basicly my needs are well described here:
http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
Watched Directory does bring it to an point Smile

I can'nt find what plug-ins or extensionpoint / preferences settings are needed to get this to run. Do you have any hint?

Thanks,
Jan
Re: Tutorial: p2 updates for Eclipse RCP applications [message #498630 is a reply to message #493450] Tue, 17 November 2009 12:44 Go to previous messageGo to next message
scb  is currently offline scb
Messages: 43
Registered: July 2009
Member
Ralf Ebert wrote on Mon, 26 October 2009 06:51
Hi,

I just wrote a tutorial about how to use the Equinox p2 provisioning
system for updating Eclipse RCP applications:

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

Thought you might be interested in this and would be glad to hear your
comments/feedback.

Greetings,

Ralf


Thanks for the tutorial!

I just tried to go through it step by step and have a problem in your "Add self-update to the application" section. I will list your steps ad show what failed

Step 1, which was to create the p2.inf file, worked fine.
Step 2, deleting the old exported folder and deploying the product again - also worked fine. Launching the newly exported app and checking for updates told me there were no updates available.
Step 3 - Like you said to do, I made some visible changes to the Main email view (added 2 labels)
Step 4 - I incremented the version number in the plugin, feature, and product, and told the product to use the updated version of the feature.
Step 5 - I renamed the old applications folder from "eclipse" to "mail_old" like you instructed. I left the repository directory there unchanged. I then exported the application again
Step 6 - Starting the newly exported application, I verified that my Labels were present in the view to see that my product was in fact updated correctly
Step 7 - I started the old version in the "mail_old" directory and selected "Check For Updates" from the Help menu. It told me there were no updates to install

Your instructions said it should see updates at this point. The "mail_old" directory is in the same directory as the newly exported "eclipse" directory containing the application and the "repository" directory that contains the "older" repository information and the updated repository information. Did I miss something?


How can I update the "com.example.mail.core" feature and "com.example.mail" plugin in the same way as the "com.example.mail.protection" feature? I exported the "com.example.mail.protection" feature the way you instructed earlier in the tutorial, and the application was able to install and later update the Spam Filter feature from a web server. Can I update the "com.example.mail.core" the same way? I tried exporting the "com.example.mail.core" feature as a deployable feature to the same directory on the web server, but the application didn't see it as an available update and gave an error when manually selecting it from the "Install New Software" menu item.

We currently have an eclipse application where all features are on an older eclipse update site on a web server. This includes our application's "main" feature and plugin." All can be updated via the update site. We're trying to figure out how to move to the new p2 provisioning system, but we can't seem to get everything working yet. So using the RCP Mail Example plugin as an example of what we want to do, we'd want to have both the spam filter feature and the "Core" Mail feature as installable features on a web server. How can we do this?

Thanks!
Re: Tutorial: p2 updates for Eclipse RCP applications [message #498842 is a reply to message #498630] Wed, 18 November 2009 13:48 Go to previous messageGo to next message
scb  is currently offline scb
Messages: 43
Registered: July 2009
Member
figured out my issue(s)....
Re: Tutorial: p2 updates for Eclipse RCP applications [message #782279 is a reply to message #498842] Mon, 23 January 2012 07:55 Go to previous messageGo to next message
M.Faisal Hameed is currently offline M.Faisal Hameed
Messages: 5
Registered: December 2010
Junior Member
Thanks for such a nice tutorial. It really helps me.
I am also stuck in the problem as posted by "scb".
I can successfully update/install new features
But I am unable to update my core plugin.
The problem is
I export my product containing the following
feature pk.com.softech.tradingterminal.feature(ver 1.0.0) and
plugin pk.com.softech.tradingterminal(ver 1.0.0)

then i made some changes in my plugin and increament my plugin and feature version as follow
feature pk.com.softech.tradingterminal.feature(ver 1.0.1) and
plugin pk.com.softech.tradingterminal(ver 1.0.1)

I build this feature using update site
I run my exported product.
I checked for software update for menu buy it does not detect any update.
I run install new software from menu it detects the new feature (pk.com.softech.tradingterminal.feature(ver 1.0.1))
when i pressed the next button it show the following error message

Your original request has been modified.
"Base Feature" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Base Feature 1.0.1 (pk.com.softech.tradingterminal.feature.feature.group 1.0.1)
Software currently installed: RCP Product 1.0.0 (pk.com.softech.tradingterminal.product 1.0.0)
Only one of the following can be installed at once:
Tradingterminal 1.0.0 (pk.com.softech.tradingterminal 1.0.0)
Tradingterminal 1.0.1 (pk.com.softech.tradingterminal 1.0.1)
Cannot satisfy dependency:
From: Base Feature 1.0.0 (pk.com.softech.tradingterminal.feature.feature.group 1.0.0)
To: pk.com.softech.tradingterminal [1.0.0]
Cannot satisfy dependency:
From: Base Feature 1.0.1 (pk.com.softech.tradingterminal.feature.feature.group 1.0.1)
To: pk.com.softech.tradingterminal [1.0.1]
Cannot satisfy dependency:
From: RCP Product 1.0.0 (pk.com.softech.tradingterminal.product 1.0.0)
To: pk.com.softech.tradingterminal.feature.feature.group [1.0.0]


How i can solve this problem?
Re: Tutorial: p2 updates for Eclipse RCP applications [message #1235416 is a reply to message #498630] Fri, 24 January 2014 04:42 Go to previous message
suresh bvn is currently offline suresh bvn
Messages: 1
Registered: January 2014
Junior Member
Hi i am facing the same problem. I tried to reexport to the same directory. When I click on Help->Check for Updates. I got no updates found. Can you help me this.
Previous Topic:Unable to hide dock icon Mac OSX for Eclipse RCP application
Next Topic:Multiple OSGi instances sharing same configuration area
Goto Forum:
  


Current Time: Wed Aug 20 08:47:08 EDT 2014

Powered by FUDForum. Page generated in 0.02233 seconds