buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rhett Sutphin <>
Subject Re: Package type :bundle
Date Wed, 04 Nov 2009 20:48:15 GMT
Hi Sten,

On Nov 4, 2009, at 2:30 PM, Sten Roger Sandvik wrote:

> On Wed, Nov 4, 2009 at 8:21 PM, Greg Lucas <>  
> wrote:
>> I wrote a simple FileTask to do just that: use the bnd ant task to  
>> produce
>> a bundle from a bnd file plus a hash of properties. This allows you  
>> to do
>> something like:
>> package(:bundle).tap do |bnd|
>>   bnd.bnd_file => 'conf/foo.bnd'
>>   bnd.classpath => artifacts(...)
>>['foo'] => 'bar'
>> end
>> I'm new to ruby and buildr but it works fine - happy to contribute  
>> this
>> somewhere if it'll be useful. I did look at buildr4osgi but didn't  
>> quite see
>> how to achieve the same results, possibly because I was already  
>> familiar
>> with bnd and the maven bundle plugin. I guess I need to take a  
>> closer look!
> This looks interesting. Can you attach the code somewhere? Would  
> love to
> look at this. I also looked at buildr4osgi, but I did not get the  
> feel of
> it.

I have a similar extension here:

It doesn't set up a new bundle package type (that is a good idea) --  
it just extends the jar package type to re-package the normal buildr- 
built jars with bnd.

Repackaging it as a gem is on my todo list, but not very high up.


View raw message