|Problem building a feature with an install handler [message #506432]
||Thu, 07 January 2010 09:22
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
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
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
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.
<feature id="com.ibm.bbp.paw.feature" label="Feature Feature"
[Enter Feature Description here.]
[Enter Copyright Description here.]
[Enter License Description here.]
source.install.jar = src/
output.install.jar = bin/
bin.includes = feature.xml,\
Powered by FUDForum
. Page generated in 0.01423 seconds