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 <[email protected]>
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(...)
bnd.properties['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:
https://ncisvn.nci.nih.gov/svn/psc/trunk/tasks/bnd.rake
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.
Rhett