|Re: [tycho-user] Test runtime with platform specific fragments|
Hey everyone,I'm using tycho to build and test some eclipse plugins. I have one bundle that has many platform specific fragments. I also have one test bundle that is using tycho-surefire-plugin to test the original bundle that has the platform specific fragments. However, tycho is not including the current platform's fragment into the test runtime.
All of the platform specific fragments look like the win64 fragment manifest listed below (there are actually 6 total fragments, one for each platform combination I need to support.)
Bundle-Name: Liferay AUI Upgrade Tool Win64
Eclipse-PlatformFilter: (& (osgi.ws=win32)(osgi.os=win32)(osgi.arch=x86_64))
Bundle-Vendor: Liferay, Inc.
Example win64 Fragment pom.xml's section
When I try to execute my tycho build and it runs the surefire test plugin (no matter which OS I try), the correct platform fragment is not added into the runtime.
I've seen various posts on stackoverflow about similar questions but in those cases the fragments loaded into the test runtime were not platform-specific fragments with OS filters.I've attached an example multi-module project the demonstrates the problem.After you run the test if you look at the bundles that are started by surefire it doesn't include the example.bundle.win32.win32.x86_64 fragment if you are on windows or the example.bundle.linux.gtk.x86_64 fragment if you are on linux.--Greg AmersonLiferay Developer ToolsLiferay, Inc. www.liferay.com
tycho-user mailing list
Back to the top