On 07/09/2012 05:47 AM, Mickael Istria wrote:
On 07/09/2012 02:34 PM, Fred Bricon wrote:
Ideally m2e-wtp would disable m2eclipse-wtp when installed, but I'm afraid it seems impossible (yeah I suck at eclipse/OSGi stuff). 
So that means the only way to install m2e-wtp for existing m2eclipse-wtp users will be to either start from a pristine eclipse installation or uninstall m2eclipse-wtp beforehand, breaking the update process for products already embedding m2eclipse-wtp.

Using p2.inf on a repository, we can add extra actions to installations. Maybe there is the necessary stuff to uninstall an IU if present... I honestly don't know a lot about those p2.inf files: http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata#Touchpoint_Instruction_Advice:
There are actions to install/uninstall IU but there is no way to handle conditional uninstallation. It is not possible to implement case: "If previous version of m2e-wtp is installed, uninstall it".

Would be good to detect previous version, show warning dialog and let trigger uninstallation for previous version m2eclipse-wtp. It requires uninstallation anyway, but at least users are explicitly warned.

I created (locally) an m2eclipse-wtp 0.15.999 empty feature that requires m2e-wtp 0.16.0. m2e-wtp is correctly installed but I'm still seeing the duplicate configurators as previous m2eclipse-wtp 0.15.2 plugins are still active.
What if this m2eclipse-wtp 0.15.999 includes empty m2eclipse-wtp plug-ins with incremented version? New plugins would be installed over old ones and since configurators is not there anymore only ones from new m2e-wtp plugins are going to be discovered.

Denis


HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets


_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev