Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem building a feature with an install handler
Problem building a feature with an install handler [message #604015] Thu, 07 January 2010 14:22
Eclipse User
Originally posted by: pawolf.us.ibm.com

I have an Eclipse 3.3 based RCP application for which I want to create a
feature which requires an install handler, but am running into some
problems. Here is what I'm doing -- I must be missing a step somewhere.

1) Create a new feature project, com.ibm.bbp.paw.feature, specifying
"install.jar" for the "Install Handler Library" field.

2) In the feature manifest editor, go to the "Installation" tab and
specify "com.ibm.bbp.paw.InstallHandler" for the "Install Handler
Handler" field.

3) Create class com.ibm.bbp.paw.InstallHandler which extends
BaseInstallHandler and implements IInstallHandler.

4) Add org.eclipse.equinox.common and org.eclipse.update.core to the
Java Build Path to get InstallHandler to compile.

5) Create an update site project, add my feature to the site, and build
the feature.

When I open the feature jar, it contains feature.xml, and
meta-inf/Manifest.mf, but no install.jar.

In testing, I found if I create install.jar myself, and put the jar file
in the feature project, everything works as expected. Is this
necessary, or should the IDE be doing this for me?

Also, in the help for the feature manifest editor
(help/topic/org.eclipse.pde.doc.user/guide/tools/editors/fea ture_editor/installation.htm),
there is mention of a Platform Install and Update guide. Perhaps some
of my questions are already answered there, but I can't seem to find
that guide. Does anyone know where to find it?

Below is the content of feature.xml and build.properties. Any help
would be most appreciated. Thanks.

Paul


<feature id="com.ibm.bbp.paw.feature" label="Feature Feature"
version="1.0.0" provider-name="IBM">
<install-handler library="install.jar"
handler="com.ibm.bbp.paw.InstallHandler"/>
<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
</feature>


source.install.jar = src/
output.install.jar = bin/
bin.includes = feature.xml,\
install.jar
Previous Topic:Problem building a feature with an install handler
Next Topic:Handling of extracted nested jar files
Goto Forum:
  


Current Time: Thu Oct 23 19:25:48 GMT 2014

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

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