[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
[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