|Re: [equinox-dev] JAR file references in Equinox Hooks?|
When you say Equinox hook bundle I assume you mean a fragment of org.eclipse.osgi that provides an adaptor hook implementation.
These types of bundles are loaded very early by the launcher before the Framework is loaded. Because of this we have limited support for loading inner jars from these types of bundles. It can be done but the bundle that includes your framework hook implementation must be in a directory bundle (not jared). And it must contain a an eclipse.properties file at its root that includes a property osgi.frameworkClassPath which specifies the inner jars. (e.g. osgi.frameworkClassPath=asm.jar).
This is the legacy way that we load framework extension bundles with hook implementations and one that we have not documented well because it got dropped in favor of framework extension bundles for the OSGi specification. The code at org.eclipse.equinox.launcher.Main.readFrameworkExtensions(URL, ArrayList) is where the eclipse.properties is read from your equinox hook bundle (framework extension). I also suggest you open an enhancement bug against Equinox to allow for framework extensions with hooks specify the Bundle-ClassPath manifest header to point to inner jars. This would allow you to move off the legacy eclipse.properties file to specify your inner jar.
Craig Setera ---08/09/2008 01:39:32 PM---Quite some time ago, I added a classloader hook bundle for my EclipseME plugin to allow EclipseME t
Craig Setera <craigjunk@xxxxxxxxxx>
08/09/2008 01:39 PM
[equinox-dev] JAR file references in Equinox Hooks?