From: Yves Langisch <yves@xxxxxxxxxxx>
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Sent: Friday, 20 January 2012 3:54 PM
Subject: [tycho-user] Best practice for a mixed environment
Hi,
I'm having difficulties to make my headless tycho-surefire tests run on our linux-based Jenkins
server:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-20 10:55:51.955
!MESSAGE Bundle org.eclipse.swt.win32.win32.x86_64_3.7.1.v3738a [32] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86_64 2 0 2012-01-20 10:55:51.955
!MESSAGE Platform filter did not match: (& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86_64))
The linux specific launcher bundles seem to be missing. But for our customers the RCP client only needs to run on Windows boxes. That's why my target platform configuration looks as follows:
<plugin>
<groupId>${tycho-groupId}</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
<target>
<artifact>
<groupId>ch.dummy</groupId>
<artifactId>my-client-targetplatform</artifactId>
<version>${project.version}</version>
<classifier>my-client</classifier>
</artifact>
</target>
</configuration>
</plugin>
What's the best way to make the surefire tests run on both platforms? Do I need a second target platform or is it enough to add an new environment entry for linux? The final product should only contain the Windows stuff.
Thanks
Yves
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/tycho-user