Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » custom touchpoint action troubles
custom touchpoint action troubles [message #510747] Thu, 28 January 2010 14:32
No real name is currently offline No real name
Messages: 1
Registered: January 2010
Junior Member
Hi all,

does custom touchpoint action work for anybody?

I had a project which was used to use installHandler to create batch file in system directory with content based on some application logic.

In Galileo the installHandlers are not supported no more. Well, I have to rewrite it to be suitable for equnox p2.

Now I have lets say example project with one plugin and one feature containing this plugin. In plugin I have MyProvisioningAction extending ProvisioningAction (it does new File() and write something into this) and it is registered in plugin.xml as follows:

<extension
id="attempt"
name="attempt"
point="org.eclipse.equinox.p2.engine.actions">
<action
class="attempt.MyProvisioningAction"
name="myAction"
touchpointType="org.eclipse.equinox.p2.native"
touchpointVersion="1.0.0"
version="1.0.0">
</action>
</extension>

Then in plugin's META-INF I have p2.inf property file containing:

provides.0.namespace=org.eclipse.equinox.p2.iu
provides.0.name=attempt
provides.0.version=$version$

In feature "myFeature" I have p2.inf containing:

requires.0.namespace=org.eclipse.equinox.p2.iu
requires.0.name=attempt
hostRequirements.0.name=myFeature
hostRequirements.0.namespace=org.eclipse.equinox.p2.iu
units.0.id=myFeature
units.0.version=$version$
units.0.provides.0.version=$version$
units.0.provides.0.name=myFeature
units.0.provides.0.namespace=org.eclipse.equinox.p2.iu
units.0.provides.0.version=$version$
units.0.instructions.install.import=attempt
units.0.instructions.install=attempt.myAction()
units.0.instructions.update.import=attempt
units.0.instructions.update=attempt.myAction()

In state above this install/update process is finished without error even in error log view but no new File is created as expected from myProvisioningAction.

I had also attempt where install and update were stated in p2.inf of plugin but it results in error while creating action with id: myAction().

Does anybody passed through it and have custom action working?

Many thanks in advance.

Michal
Previous Topic:Managing available software sites
Next Topic:JNI UnsatisfiedLinkError for native function of inner class that works in non-OSGi environment
Goto Forum:
  


Current Time: Wed Sep 17 01:50:40 GMT 2014

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

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