Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » How to define custom p2 touchpoint actions correctly?
How to define custom p2 touchpoint actions correctly? [message #883155] Thu, 07 June 2012 23:57 Go to next message
Yufen Kuo is currently offline Yufen Kuo
Messages: 7
Registered: July 2009
Junior Member
I am trying to define my own custom p2 touchpoint actions. But I am always getting "Not Action found for:
com.company.my.touchpoint.actiontype.my_custom_action" during install phase.

In the plugin.xml, I added the following extensions:
<plugin>
<extension point="org.eclipse.equinox.p2.engine.touchpoints" id="my.id" name="Eclipse Touchpoint">
<touchpoint type="com.company.my.touchpoint.actiontype" class="org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint" version="1.0"/>
</extension>

<extension point="org.eclipse.equinox.p2.engine.actions">
<action
class="com.company.touchpoints.CustomAction"
name="my_custom_action"
touchpointType="com.company.my.touchpoint.actiontype"
touchpointVersion="1.0"
version="1.0">
</action>
</extension>
</plugin>
in the plugin's p2.inf:
provides.0.namespace=org.eclipse.equinox.p2.engine.actions
provides.0.name=my_custom_action
provides.0.version=1.0

and in plugin that wishes to use this custom touchpoint action's p2.inf, I have defined:
metaRequirements.0.namespace=org.eclipse.equinox.p2.engine.actions
metaRequirements.0.name=my_custom_action
metaRequirements.0.range=1.0
instructions.install = my_custom_action();
instructions.install.import = com.company.my.touchpoint.actiontype.my_custom_action;


Is there anything I am missing for defining custom p2 touchpoint actions?
Re: How to define custom p2 touchpoint actions correctly? [message #1007142 is a reply to message #883155] Mon, 04 February 2013 15:38 Go to previous message
Eugene Kondrashev is currently offline Eugene Kondrashev
Messages: 8
Registered: January 2012
Junior Member
Hi,
Have you resolved this issue?

I'm facing the same problem.
Previous Topic:When mirroring p2 repo can you specify multiple platformFilter arguments?
Next Topic:Can't export product: qualifiers in dependent plugins don't match
Goto Forum:
  


Current Time: Thu Oct 30 14:24:41 GMT 2014

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

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