Just to complement McCulloch's input: I would not recommend you to use the BND tool directly. Integrate it into the build manager instead. Depending on your current build tool it can be easy to integrate it into the build process or not. The fact that your build system is non-standard may cause you trouble.
I hate to repeat myself but since you are adopting OSGi you migth as well take into consideration some better building techniques, since they will save you a great deal of time. OSGi is all about correctly-built components, and one tiny error will take serious hours of work on your schedule, which might be tight already. Kind regards, Rodrigo Consider upgrading you project to Maven, On Tue, Mar 4, 2008 at 1:38 AM, Stuart McCulloch < [EMAIL PROTECTED]> wrote: > 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 >

