Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » P2 hook update(How to hook in the update process)
P2 hook update [message #675705] Wed, 01 June 2011 08:58 Go to next message
Matthias Steigenberger is currently offline Matthias SteigenbergerFriend
Messages: 6
Registered: June 2011
Junior Member
Hi everybody,

the p2 update for my rcp Product works generally fine but I need to close some file handles to files which p2 backups and wants to delete. Otherwise i get an error saying something like "The backuped file ... could not be deleted" unless i close the handle manually.
So i need a way to hook in the actual update process and close the handle befor updating.
What is the general way to do that?

Regards,
Matthias
Re: P2 hook update [message #677726 is a reply to message #675705] Thu, 09 June 2011 08:57 Go to previous messageGo to next message
Matthias Steigenberger is currently offline Matthias SteigenbergerFriend
Messages: 6
Registered: June 2011
Junior Member
Isn't there a way to listen when the installation of an update occours? Or do I have to mess with touchpoints (how?)?
I'm using Eclipse 3.7.
Re: P2 hook update [message #683727 is a reply to message #677726] Tue, 14 June 2011 10:04 Go to previous message
Matthias Steigenberger is currently offline Matthias SteigenbergerFriend
Messages: 6
Registered: June 2011
Junior Member
Hi,

now I know that I have to use touchpoint actions to struggle my usecase.
I found the following page that describes what to do:
xttp://stackoverflow.com/questions/6154367/a-working-example-of-custom-p2-provisioning-action/6179632#6179632

But if I build my product with buckminster on a jenkins it says the following:

[ant] /var/lib/jenkins/tools/Buckminster-3.6/buckminster/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
[ant] file:/var/lib/jenkins/jobs/Test_Job/workspace/buckminster.output/com.in2soft.testPlugin.site_1.0.0-eclipse.feature/site.p2/
[ant] /var/lib/jenkins/jobs/Test_Job/workspace/buckminster.output/com.in2soft.testPlugin.site_1.0.0-eclipse.feature/Test_App
[ant] The actions required to successfully install the requested software can not be installed.
[ant] Cannot complete the install because of a conflicting dependency.
[ant] Software being installed: org.eclipse.equinox.p2.engine.actions.root.TestProfile 1.0.0.1308040973846
[ant] Software currently installed: Buckminster 1.2.1.r11564 (org.eclipse.buckminster.cmdline.product 1.2.1.r11564)
[ant] Only one of the following can be installed at once:
[ant] Core Runtime 3.6.0.v20100505 (org.eclipse.core.runtime 3.6.0.v20100505)
[ant] Core Runtime 3.7.0.v20110110 (org.eclipse.core.runtime 3.7.0.v20110110)
[ant] Cannot satisfy dependency:
[ant] From: Test_App 1.1.4.I20110614-3 (com.in2soft.testPlugin 1.1.4.I20110614-3)
[ant] To: bundle org.eclipse.core.resources [3.7.0,4.0.0)
[ant] Cannot satisfy dependency:
[ant] From: Buckminster 1.2.1.r11564 (org.eclipse.buckminster.cmdline.product 1.2.1.r11564)
[ant] To: org.eclipse.core.runtime [3.6.0.v20100505]
[ant] Cannot satisfy dependency:
[ant] From: Core Resource Management 3.7.100.v20110510-0712 (org.eclipse.core.resources 3.7.100.v20110510-0712)
[ant] To: bundle org.eclipse.core.runtime [3.7.0,4.0.0)
[ant] Cannot satisfy dependency:
[ant] From: org.eclipse.equinox.p2.engine.actions.root.TestProfile 1.0.0.1308040973846
[ant] To: com.in2soft.testPlugin.touchpoint clearProjectAction 1.0.0
[ant] Application failed, log file location: /var/lib/jenkins/tools/Buckminster-3.6/buckminster/configuration/1308040969901.log

If i don't use the "metaRequirements" in the p2.inf file than the build works fine.
I have a plugin Project, and a feature project that requires that plugin. The product requires the feature.
Does anyone have a clue about my issue?
Thanks

Matthias
Previous Topic:Generate a flat but optimized repository
Next Topic:RCP self-update modifying product ini file
Goto Forum:
  


Current Time: Wed Dec 04 16:08:31 GMT 2024

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

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

Back to the top