Module: Buildr4OSGi::P2

Includes:
Extension
Included in:
Buildr::Project
Defined in:
lib/buildr4osgi/eclipse/p2.rb

Defined Under Namespace

Classes: UpdateSitePublisherTask

Instance Method Summary collapse

Instance Method Details

#package_as_p2_from_site(file_name) ⇒ Object



22
23
24
25
26
# File 'lib/buildr4osgi/eclipse/p2.rb', line 22

def package_as_p2_from_site(file_name)
  task = UpdateSitePublisherTask.define_task(file_name)
  task.send :associate_with, self
  task
end

#package_as_p2_from_site_spec(spec) ⇒ Object



28
29
30
# File 'lib/buildr4osgi/eclipse/p2.rb', line 28

def package_as_p2_from_site_spec(spec)
  spec.merge(:type => :zip, :classifier => "p2", :id => name.split(":").last)
end