Hi
We are trying to access the pde plugin registry in a tycho-surefire test as follows:
IPluginModelBase model = PluginRegistry.findModel(mybundle);
However, the plugin registry seems not to contain our bundles. In the osgi registry all our bundles are available:
Bundle[] bundles =
MyPlugin.getDefault().getBundle().getBundleContext().getBundles();
The pom.xml looks as follows:
…
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<useUIHarness>false</useUIHarness>
<useUIThread>true</useUIThread>
<dependencies>
<dependency>
<type>eclipse-feature</type>
<artifactId>my.feature</artifactId>
<version>0.0.0</version>
…
The my.feature contains all necessary dependencies. The plugin tests run without problems in the eclipse ide as eclipse plugin tests, using the same target platform as defined in my.feature
In the target/work/configuration/config.ini file all plugins of my.feature are listed in osgi.bundles.
#Wed May 22 18:16:03 CEST 2013
osgi.bundles=reference\:file\:D\:/WS/mv3repo/p2/osgi/…
osgi.bundlefile.limit=100
osgi.bundles.defaultStartLevel=4
osgi.configuration.cascaded=false
Any ideas?
Malu