Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Custom Install handler
Custom Install handler [message #448329] Thu, 20 April 2006 21:03
Eclipse UserFriend
Originally posted by: amittal3.csc.com

Hi,

I am trying to write a custom Install handler for a plugin. So that my
custom installer is called when installing the plugin after the plugin is
downloaded.

1. I created the plugin with name basicPlugin (hello world plugin)

2. I created the custom install handler plugin - basicInstaller
which contains the class -

import org.eclipse.update.core.BaseInstallHandler;
public class MyInstallHandler extends BaseInstallHandler {

public void completeConfigure(){
System.out.println("Called from inside MyInstallHandler");
}
}

basicInstaller plugin also contains Activator.java class which I do not
use.

3. I exported the plugin as basicInstaller_1.0.0.jar
4. I created the feature project- basicFeature for plugin basicPlugin and
added basicPlugin to it.
5. I put the basicInstaller_1.0.0.jar file inside the src folder of
feature.
6. I added the basicInstaller_1.0.0.jar inside Installaation section
as non-plug in data and also specified basicInstaller as installer for
this feature.

My feature.xml file is as follows-


<feature
id="basicFeature"
label="basicFeature"
version="3.0.0"
provider-name="CSC">
<install-handler library="basicInstaller"
handler="basicInstaller.MyInstallHandler"/>

<description url="http://www.example.com/description">
[Enter Feature Description here.]
features of this plugin are as follows -
1.2.3
</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>

<plugin
id="basicPlugin"
download-size="101"
install-size="101"
version="3.0.0"
unpack="false"/>

<data
id="src/basicInstaller_3.0.0.jar"
download-size="0"
install-size="0"/>

</feature>
7. Then I pulished this feature to a update site project.
8. Then when I run the update manager, I am able to select the basic
plugin
from list of available downloads but when I click on finish, it gives
me a error - Update opeation has failed.

Any help on this topic would be appreciated.

Thanks
Ankur Mittal
Previous Topic:EOFException during automated build
Next Topic:Continuous integration build
Goto Forum:
  


Current Time: Thu Dec 26 16:47:55 GMT 2024

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

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

Back to the top