improve auto-bundling of libraries put in lib/ext
JOnAS 5 provides an auto-bundling mechanisms that converts libraries present in lib/ext into OSSi bundles in work/ext-bundles.
I propose the following improvement for the auto-bundling of libraries put in lib/ext.
-
Each library in lib/ext is automatically converted to a single OSGI-Bundle. (That's the actual behaviour).
-
Where mylibs is a subdirectory of lib/ext, all the libraries in mylibs are put in a single OSGI-bundle (that could be something like work/ext-bundles/mylibs.jar) Rationale: this is relevant where several legacy libraries, e.g. from proprietary commercial products export complementary classes in the same packages. These libraries cannot be changed - this would result in loosing any support from their editor. BThe libraries are left unchanged, and all the classes are visible in the resulting bundle. This will ease the migration from JOnAS 4 to JOnAS 5, as in JOnAS 4 all the classes in the lib:ext libraries are visible.
-
where a bundle is present in lib/ext, it is copied without further transformation to work/ext-bundles. Rationale: if I have made some effort to bundle myself a library, so that to control precisely what it imports/exports, I want to be able to deploy it in the same way as if I had not bundled it, that is, simply drop it into lib/ext, rather than making a deployment plan, which futhermore would probably change the dynamic of the bundle processing (as it will be processed very later by JOnAS).