Equinox User [message #1857222] |
Wed, 25 January 2023 09:04  |
Eclipse User |
|
|
|
I am porting a legacy application onto Open Liberty which contains multiple plugin.xml files. I have gotten the equinox extension registry to work and the extensions, extension-points, etc. are being included in the registry. Some of the extension-points reference .exsd files. For example:
<extension-point id="ServiceExtension" name="Service Extension Point"
schema="schema/ExtendedService.exsd"/>
I have tried several things, but have not figured out a way to get the registry to understand the schema. As a result, several of the extensions in the registry are incorrect.
How do I include these files?
|
|
|
|
Re: Equinox User [message #1857327 is a reply to message #1857288] |
Mon, 30 January 2023 12:33   |
Eclipse User |
|
|
|
Hi Ed, thank you for your response. I am programmatically loading the registry with code something like this:
contributor = new RegistryContributor(contributorId, contributorNamespace, null, null);
this.registry.addContribution(pluginFileStream, contributor, true, contributionName + contributorId,null, null));
This code goes through a list of plugin.xml files which contain extension-points (see my original post) and extensions. Since the registry does not have knowledge of the .exsd files, it cannot process the tags included in some of the extensions.
As a result, the registry gets loaded, but inspection of the extensions shows that the equinox registry code could not find the .exsd files, so it could not properly evaluate the extensions. I need to put the .exsd files somewhere where the equinox
extension registry code can find them. I am not implementing my own extension registry, I am using the non-osgi version as per this forum post: https://www.eclipse.org/forums/index.php/t/29357/
Any thoughts would be appreciated.
Thanks, Sarah
|
|
|
|
Powered by
FUDForum. Page generated in 0.03300 seconds