Skip to main content



      Home
Home » Archived » P2 dev » how to remove plugin file after a succesful p2 update
how to remove plugin file after a succesful p2 update [message #493885] Wed, 28 October 2009 07:16 Go to next message
Eclipse UserFriend
Hello,

I have a RCP application (based on 3.5) that use the "Headless Updating on Startup" as described in http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_ RCP_Application#Headless_Updating_on_Startup

Everything works, but after a succesful update I would like to remove the old plugins files (located in the plugins directory of my RCP installation).
Do you know how to acheive this ? what can I change in the P2Util class?

Thanks
Yann.
Re: how to remove plugin file after a succesful p2 update [message #506521 is a reply to message #493885] Thu, 07 January 2010 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Ignore this post. Please look at the next one.

[Updated on: Thu, 07 January 2010 16:04] by Moderator

Re: how to remove plugin file after a succesful p2 update [message #506528 is a reply to message #493885] Thu, 07 January 2010 16:03 Go to previous message
Eclipse UserFriend
Hi Yann,

The easiest way which every one probably knows is through P2 UI.

But if you want to do programatically before lauching app in P2Util,

the P2 Api lets you go through all the installable units,

if you find more than one IU with same name, match version number and uninstall all IU's with less version numbers.
Previous Topic:Problem with eclipse.ini and plugins installation
Next Topic:P2 RCP Update
Goto Forum:
  


Current Time: Tue Jul 08 08:38:03 EDT 2025

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

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

Back to the top