[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [linuxtools-dev] System-installed dependencies
|
FYI: I've stumbled across a working solution for unbundling dependencies that does not require the use of the (sparsely supported) "external" Bundle-ClassPath references and does not require system-installed JARs to contain OSGi metadata:
1. Run Eclipse-Build as usual.
2. For each dependency JAR in installation/plugins:
a. Create a new directory in installation/plugins named using the basename of the plugin JAR.
b. Extract plugin.properties and META-INF/MANIFEST.MF from the plugin JAR into the new directory.
c. Create symlink(s) to the system-installed JAR(s) in the new directory.
d. Remove all "Name" and "SHA1-Digest" entries from META-INF/MANIFEST.MF.
e. Add a "Bundle-ClassPath" entry to META-INF/MANIFEST.MF listing the names of the symlink(s) created in step c.
f. Add the following XML element as a child of the <artifact> element for the appropriate plugin in artifacts.xml:
<repositoryProperties size='1'>
<property name='artifact.folder' value='true'/>
</repositoryProperties>
g. Edit configuration/org.eclipse.equinox.simpleconfigurator/bundles.info to change the ".jar" suffix of the appropriate plugin to "/".
h. Delete the dependency JAR from installation/plugins.
Now all the Gentoo users can be happy again! Thanks for all the work Andrew and the others have done to make this possible.