Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-dev] Is it possible to copy a file to to eclipse_home\default folder as a part of plug-in installation ?

Look at using installhandlers to accomplish this task.

The important thing to note is that installhandlers are tied to feature lifecycle so yo need to understand whether you want your operation to be performed during feature install,configure,unconfigure,uninstall. It seems it makes sense that your operation reside in the install/uninstall phases (imho).

If you don't like bundling your installhandler in a jar file like it is required, the other option is to create your own installhandler that is a global installhandler (http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_update_core_installHandlers.html?resultof=%22%69%6e%73%74%61%6c%6c%68%61%6e%64%6c%65%72%22%20%22%69%6e%73%74%61%6c%6c%68%61%6e%64%6c%22%20) and than simply reference that global installhandler in the feature you're interested in. I personally think it's much easier to manage it that way as you're not packaging a separate jar in your bundle.

Cheers,

---
Chris Aniszczyk | IBM Lotus | Eclipse Committer | +1 860 839 2465

Inactive hide details for "Nalaka Gamage" ---12/05/2006 11:09:10 PM---Hi All,"Nalaka Gamage" ---12/05/2006 11:09:10 PM---Hi All,

From:"Nalaka Gamage" <NGamage@xxxxxxxxxxx>
To:<pde-dev@xxxxxxxxxxx>
Cc:pde-build-dev@xxxxxxxxxxx
Date:12/05/2006 11:09 PM
Subject:[pde-dev] Is it possible to copy a file to to eclipse_home\default folder as a part of plug-in installation ?



Hi All,
I have a requirement that, when my plug-in is installed (using eclipse install/update UI) I need to copy a file called myConfig.ini (which reside in my plug-in itself) file to eclipse_home\default folder.
Is this sort of file copying possible with eclipse plug-in. If so can you help me how to do that?

Regards,
Nalaka_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev

GIF image


Back to the top