On 03/03/2008, jaredmac <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> Is there any way to have something other than a jar file be a
> bundle/plugin?
> That is, is there any way to express that this list of classes, or this
> particular package, is the bundle?


Hi Jared,

as Richard mentioned, you can install bundles based on directories
(ie. the same structure as a jarfile, but "exploded") and you can also
programmatically install bundles from an InputStream, but again this
expects the contents to be in jarfile format.

I looked over the OSGi spec and it seems that a bundle is strictly a jar,
> but I figured I'd ask here.
>
> I ask because our current build system does not lend itself toward
> arbitrary
> jarring of the chunks of code that we'd want to make into bundles.


well, Peter Krien's Bnd tool lets you to take a project classpath and
split it into one or more bundles - I believe that's the main reason why
he developed it.

for example:

   bnd build -classpath <project-classpath> -output a.jar a.bnd
   bnd build -classpath <project-classpath> -output b.jar b.bnd
   bnd build -classpath <project-classpath> -output c.jar c.bnd

where a.bnd, b.bnd and c.bnd contain instructions for pulling classes
and resources from the project classpath into the relevant bundles.

more details can be found here:  http://aqute.biz/Code/Bnd

HTH

Thanks,
> Jared
>
> --
> View this message in context:
> http://www.nabble.com/non-jar-as-bundle-unit-tp15805581p15805581.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
Cheers, Stuart

Reply via email to