Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Running plugin test with native fragments

eclipse-test-plugin only sets up a simple Equinox OSGi runtime, and that runtime doesn’t necessarily have the characteristics of an Eclipse installation. One of the aspects not supported is packed vs. unpacked bundes: Bundles from the external target platform are always packed.

 

There is an enhancement request to have eclipse-test-plugin set up a full Eclipse installation (https://bugs.eclipse.org/bugs/show_bug.cgi?id=343152), but there hasn’t been any progress so far.

 

Regards

Tobias

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Ramy Siha
Sent: Montag, 25. Juni 2012 16:02
To: Tycho user list
Subject: [tycho-user] Running plugin test with native fragments

 

Hello All,
   One of our maven p2 repository containing a licensing feature and it's plugin, this plugin have 2 different fragments ( 1 for windows and 1 for linux ) for holding their corresponding jni libraries . Of course if we installed the feature as an IU the fragments will get extracted so the plugin code will be able to load the libraries with their full path. ( The license feature is third party so we cannot modify it )

We get the problem when we try run an eclipse-test-plugin that depends on the licensing plugin, since the fragments when downloaded from the repository to the .m2 folder they do not get extracted and also @ the target/work/configuration/config.ini the plugin is listed of it's .jar form so unzipping the fragments manually will not do the trick

I did consider installing the license fragment IU into target/work directory of the test plugin project so that the fragments will get extracted and loaded correctly at test run-time but I was looking for a simpler solution.



    <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <useUIHarness>true</useUIHarness>
                    <useUIThread>false</useUIThread>
                    <product>org.eclipse.platform.ide</product>
                    <dependencies>

<dependency>
                            <type>p2-installable-unit</type>
                            <artifactId>***.******.*********.ui</artifactId>
                            <version>0.0.0</version>
                        </dependency>
                        <dependency>
                            <type>p2-installable-unit</type>
                            <artifactId>***.******.********.ui.linux.x86
                            </artifactId>
                            <version>0.0.0</version>
                        </dependency>

.....

</dependencies>

.......

Thanks in advance.

Best Regards,

   Ramy Siha


Back to the top