module Buildr::Bnd::ProjectExtension
Public Instance Methods
package_as_bundle(filename)
click to toggle source
# File addon/buildr/bnd.rb, line 136 def package_as_bundle(filename) project.task('bnd:print' => [filename]) do |task| Buildr::Bnd.bnd_main('print', filename) end dirname = File.dirname(filename) directory(dirname) # Add Buildr.application.buildfile so it will rebuild if we change settings task = BundleTask.define_task(filename => [Buildr.application.buildfile, dirname]) task.project = self # the last task is the task considered the packaging task task end
package_as_bundle_spec(spec)
click to toggle source
Change the bundle package to .jar extension
# File addon/buildr/bnd.rb, line 152 def package_as_bundle_spec(spec) spec.merge(:type => :jar) end