Module: OSGi::PackagingAsSourcesExtension
- Includes:
- Extension
- Included in:
- Buildr::Project
- Defined in:
- lib/buildr4osgi/osgi/packaging_sources.rb
Overview
:nodoc: This module is used to identify the packaging task that represent a bundle packaging.
Instance Method Summary collapse
-
#package_as_eclipse_source_bundle(file_name) ⇒ Object
package as an OSGi bundle that contains the sources of the bundle.
-
#package_as_osgi_pde_sources(file_name) ⇒ Object
if the current packaging is a plugin or a bundle then call package_as_eclipse_source_feature if the current packaging is a feature then call package_as_eclipse_source_bundle.
-
#package_as_sources_spec_source_extension(spec) ⇒ Object
Change the zip classifier for the sources produced by a jar classifier unless we are packaking a feature right now.
Instance Method Details
#package_as_eclipse_source_bundle(file_name) ⇒ Object
package as an OSGi bundle that contains the sources of the bundle. Specialized for eclipse-PDE version 3.4.0 and more recent help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_individual_source.htm file_name
72 73 74 75 76 |
# File 'lib/buildr4osgi/osgi/packaging_sources.rb', line 72 def package_as_eclipse_source_bundle(file_name) pluginManifest = package(:plugin).manifest sourcesManifest = ::OSGi::create_source_bundle_manifest(pluginManifest) package_as_sources_old(file_name).with :manifest => sourcesManifest end |
#package_as_osgi_pde_sources(file_name) ⇒ Object
if the current packaging is a plugin or a bundle then call package_as_eclipse_source_feature if the current packaging is a feature then call package_as_eclipse_source_bundle
62 63 64 65 |
# File 'lib/buildr4osgi/osgi/packaging_sources.rb', line 62 def package_as_osgi_pde_sources(file_name) return package_as_eclipse_source_bundle(file_name) if project.send :is_packaging_osgi_bundle package_as_sources_old(file_name) end |
#package_as_sources_spec_source_extension(spec) ⇒ Object
Change the zip classifier for the sources produced by a jar classifier unless we are packaking a feature right now.
50 51 52 53 54 55 56 |
# File 'lib/buildr4osgi/osgi/packaging_sources.rb', line 50 def package_as_sources_spec_source_extension(spec) #:nodoc: spec = package_as_sources_spec_before_source_extension(spec) if is_packaging_osgi_bundle spec.merge!(:type=>:jar, :id => name.split(":").last) end spec end |