I have two versions of the same applications running in my system which share a common configuration location. So when i install new plugins in one of the application instances, the plugin gets installed in the second one too. Also the same result is replicated when i uninstall any of the plugins from one instance.
When I mean installation, i use the 'dropins' folder in the application folder to add and remove plugins.
It would be of great help if someone could help me out here.
Yes I have two application with different Id's. The two applications share only some common plugins. And my usecase restricts me to use two different configuration areas. I am using the plugin "org.eclipse.equinox.p2.reconciler.dropins" for handling my dropins folder handling.
But my use case asks me to have multiple custom dropins folder. So I extend "org.eclipse.equinox.p2.reconciler.dropins" to listen to multiple dropins folder.
This works alright until there are two instance of the application, sharing the same configuration [cant avoid this !]. The first instance is unaware of what the second one has added to the config pool.
The problem seems to be with the ProfileSynchronizer.
Here is my usecase in detail
1.I have an rcp application called 'mail'
2.I export the product [mail.exe] to two different locations [say c:\mail1 and c:\mail2]
3.I make changes in both the mail.ini saying
4. I create fodler dropins in both c:\mail and c:\mail2
5.I copy a plugin menu1.jar in c:\mail\dropins and I copy plugins menu1.jar and menu2.jar into c:\mail2\dropins
6.I start c:\temp\mail \mail.exe the menu1 is picked correctly
7.I start c:\temp\mail2\mail.exe none of the two plugins are picked.
8.I start c:\temp\mail \mail.exe again, the old menu1 is uninstalled now.
It would be great if someone could please help me out here.