Skip to main content

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

Malu,

I don't see something special except the "some text output follows...": where does it come from ?
If you can send us the extract of the code that fails ?

Jeff


On Thu, May 23, 2013 at 7:35 AM, Martha-Lucia Cadavid <martha-lucia.cadavid@xxxxxxxxxxxxx> wrote:

Thanks in advance

Malu

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Jeff MAURY
Gesendet: Donnerstag, 23. Mai 2013 00:52


An: Tycho user list
Betreff: Re: [tycho-user] PluginRegistry Problem with Tycho-Surefire

 

Can you send us the eclipse log file to see if something strange has happened ?

Regards

Jeff

 

On Wed, May 22, 2013 at 7:41 PM, Martha-Lucia Cadavid <martha-lucia.cadavid@xxxxxxxxxxxxx> wrote:

Hi Jeff,

 

Thank you for the fast reply! J

This was a good hint and I tried to configure the start levels as follows:

 

<build>

        <plugins>

            <plugin>

                <groupId>org.eclipse.tycho</groupId>

                <artifactId>tycho-surefire-plugin</artifactId>

                <configuration>

                    <useUIHarness>false</useUIHarness>

                    <useUIThread>true</useUIThread>

                    <bundleStartLevel>

                        <bundle>

                            <id>org.eclipse.core.runtime</id>

                            <level>4</level>

                            <autoStart>true</autoStart>

                        </bundle>

 

Unfortunately this did not change anything.

Any more ideas are very appreciated.

 

Thanks

Malu

 

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Jeff MAURY
Gesendet: Mittwoch, 22. Mai 2013 18:51
An: Tycho user list
Betreff: Re: [tycho-user] PluginRegistry Problem with Tycho-Surefire

 

Maybe a problem of a start level ?

Jeff

 

On Wed, May 22, 2013 at 6:45 PM, Martha-Lucia Cadavid <martha-lucia.cadavid@xxxxxxxxxxxxx> wrote:

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.
****************************************************


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY

Fehler! Es wurde kein Dateiname angegeben.


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

*****************************************************

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.
****************************************************


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY

Das Bild wurde vom Absender entfernt.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

*****************************************************
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.
****************************************************


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top