I want to create an automatic installer for the Eclipse plugin (ie not through the "Update Manager"). My scenario is simple: the user closes Eclipse, deletes the loaded JAR in the dropins folder, starts Eclipse, and the rest of the process is automated.
In older versions of Eclipse, prior to the P2 era, Eclipse had a (still) class called InstallCommand that could be used to install pluings in the current working platform.
Although this still works in Eclipse 3.4 and 3.5, it does not behave correctly: it is most noticeable that the plugins installed in this way cannot be automatically removed (it is darkened).
JavaDoc claims that InstallCommand deprecated and should be replaced with the P2 alternative. However, I could not find a suitable tool for the job. There is a P2 Director , but it is designed to run as a standalone application from the command line. It can be called from within Eclipse, but for this it is not cut. For example, performance monitoring and error reporting do not work.
Does anyone know of a good alternative for this?
Thanks, Zviki
eclipse eclipse-plugin p2
zvikico
source share