Monday, January 21, 2013 02:34 AM
Platform.getBundle(Activator.PLUGIN_ID). It returns the bundle id that we see in OSGI environment for my plugin A.
So, as a by pass, there is one way to force the Activator of plugin A to be initialized in AntRunner is the following one:
BundleContext context = Platform.getBundle(Activator.PLUGIN_ID).getBundleContext();
However, I would like to know the answers to:
why Ant needs a classpath when it is executed in an OSGI environment such as Eclipse (headless or normal) ? Do Ant and Equinox share the same VM or are they using different VM ?