|
|
Re: Java 11 + Tycho-Surefire + bundled OpenJFX11 [message #1829455 is a reply to message #1828277] |
Fri, 03 July 2020 22:16 |
Quang Tran Messages: 3 Registered: July 2020 |
Junior Member |
|
|
I think I've found out why this is not working. The tycho surefire frameworkExtension definition is not working as I would expected.
The eclipse documentation at https://wiki.eclipse.org/Adaptor_Hooks says:
Quote:When using the osgi.framework.extensions property to specify a framework extension bundle the bundle symbolic name of the extension bundle must be used. In order for the extension bundle to be found and added to the framework implementation classpath it must be co-located in the same directory as the org.eclipse.osgi bundle at runtime and it must be a single jar (a directory does not work). In a normal eclipse runtime installation you would add your binary framework extension bundle jar to the directory eclipse/plugins/ of your eclipse installation. You also need to add the necessary osgi.framework.extensions property to the config.ini of you eclipse installation.
The OSGI runtime of tycho has not a standard layout as writen here : https://wiki.eclipse.org/Tycho/Testing_with_Surefire#Default_behaviour:_Create_OSGi_runtime_from_target_platform
The OSGI bundles tycho is using is:
C:/.m3/repository/p2/osgi/bundle/org.eclipse.fx.osgi/3.6.2.202001141050/org.eclipse.fx.osgi-3.6.2.202001141050.jar
C:/.m3/repository/p2/osgi/bundle/org.eclipse.osgi/3.13.100.v20180827-1536/org.eclipse.osgi-3.13.100.v20180827-1536.jar
which is not the standard layout for framework extensions
And also the necessary osgi.framework.extensions property was also not added in the config.ini in ${project.build.directory}/work/data/configuration
We could try to change the OSGi test runtime to p2Installed and check if it's working or fill a bug (I don't know if this behaviour is intended)
//Edit: I checked the tycho code, it should work...
[Updated on: Fri, 03 July 2020 22:39] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02986 seconds