Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Adapter Hooks: Putting the hookconfigurators.properties file in a jar
Adapter Hooks: Putting the hookconfigurators.properties file in a jar [message #97952] Fri, 21 September 2007 08:56
Eclipse UserFriend
Originally posted by: Jan-Hendrik.Diederich.bredex.de

Hello,
I have a simple question:
How do you put a hookconfigurators.properties file in a jar?

I have downloaded the AdapterHook examples from equinox-incubator via CVS.
I choosed the XSLT example for my tests and sucessfully executed it.
Directly in eclipse. Via the context-menu in the package
"org.eclipse.equinox.transforms.xslt.plugin". Where I choosed "Debug As |
XSLT Transform Launch".
But if I zip this things into a jar it doesn't work. I edited my
configuration/config.ini and added the line
" osgi.framework.extensions=org.eclipse.equinox.transforms,org .eclipse.equinox.transforms.xslt ".
I also tried it with the additional entry of
"org.eclipse.equinox.transforms.xslt" at the property "osgi.bundles".
(Although this shouldn't be necessary anyway.) I copied the jars of each
needed package, namely "org.eclipse.equinox.transforms",
"org.eclipse.equinox.transforms.xslt" and
"org.eclipse.equinox.transforms.xslt.plugin" directly into the main
"eclipse/plugins" directory. And after eclipse has started up, it tells me
the plugins were loaded correctly.
What do I have to do to let the osgi Framework recognize my
"hookconfigurators.properties"?
It fails at this place:
"HookRegistry.mergeFileHookConfigurators(...) { ...
hookConfigurators = cl != null
? cl.getResources(HookRegistry.HOOK_CONFIGURATORS_FILE)
: ClassLoader.getSystemResources(HookRegistry.HOOK_CONFIGURATO RS_FILE); "
There it works only if I execute it via the context-menu.

Any suggestions what I forgot/done wrong?

Thanks
Jan Diederich
Previous Topic:Plugin dont start in Europa
Next Topic:Help me Jesub!
Goto Forum:
  


Current Time: Thu Apr 25 02:28:17 GMT 2024

Powered by FUDForum. Page generated in 0.02582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top