This extension to org.jruby.embed provides the support to load ruby code and java code from OSGi bundles.
It was developed and built here: https://github.com/intalio/org.jruby.osgi/
All developed by myself and using the same license and copyright than the rest of the jruby code.
The attached patch adds the couple of new classes necessary to the sources of jruby.
I tested a local build of jruby-complete and the MANIFEST generated looks fine.
I have not figured out a way to run the testunits directly from ant.