From: Ed Burnette <Ed.B<urnette@sa...> - 2005-07-28 15:58:33
I've discovered that if you make a little tweak in your MANIFEST.MF =
file, then Eclipse (and possibly other OSGi containers like Knoppix) =
will be able to load it natively. In other words, if you put one of your =
jar files in an Eclipse plugins directory, Eclipse will treat it as a =
plug-in and let other plug-ins use it.
In MANIFEST.MF, just add these lines anywhere:
Bundle-Name: BeanShell Full Library
These are standard OSGi manifest lines except for that last one. List =
all packages you want users of the jar to be able to access in the =
Export-Package list. The Bundle-Version number has to be in OSGi format, =
which is a 3- or 4- level number (the 4th level can be any string). The =
Bundle-Name and Bundle-Vendor can be anything you want. There can't be =
any blank lines or comments in the manifest.
If you could make the additions to your next beta version of BeanShell =
then that will make it easier for people to use BeanShell in Eclipse.