felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john.dun...@exceter.com
Subject Re: Install Object as bundle
Date Fri, 19 Aug 2011 14:12:08 GMT

Oh cool I was thinking along the right track! I think I can adapt this  
to do what I need. Thanks for your assistance!

-John

Quoting Holger Hoffstätte <holger.hoffstaette@googlemail.com>:

> On 19.08.2011 15:28, john.dunlap@exceter.com wrote:
>> Yes, that's exactly what I need to do. Do you have a recommended approach?
>
> Don't know what your service does, but creating a bundle on-the-fly is
> quite easy (I was surprised how easy, actually). I have some code but
> can't post the full version, so I put a sanitized snippet here:
> http://pastebin.com/Cqi7QMuJ
>
> (it does exactly what I needed, but without a doubt Someone On The
> Internet will find something Completely Wrong with it..caveat emptor and
> all that.)
>
> This will create a bundle with the same version/BSN root as the
> "prototype" Bundle that you pass in. Take care of generating unique BSNs.
> The dynamically generated headers can be anything you want; I only needed
> an empty bundle with no exports/imports/services/Activator etc. so this is
> left as exercise for you. :)
>
> hth,
> Holger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message