Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] PluginRegistry Problem with Tycho-Surefire

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

*****************************************************
This e-mail may contain confidential material. It is intended only for the person or entity which it is addressed to. In case you should not be supposed to get this e-mail we ask you to delete it without taking notice of its content. Any views or opinions expressed in this e-mail are those of the sender and do not necessarily coincide with those of The Swiss Raiffeisen Group. Therefore this e-mail does not represent a binding agreement nor an offer to deal. E-Mail transmission can be insecure and can contain errors. Information could be intercepted, corrupted, lost, destroyed, incomplete or may contain viruses. Neither The Swiss Raiffeisen Group nor the sender can accept any liability for any kind of damage as the result of viruses or transmission errors.
****************************************************


Back to the top