Plugin osgi-bundle v0.1


Overview

Provides osgi features.

Parameters

The following property values can be changed to tune the behavior of this plugin.
Required parameters must be defined upon import, or the build will fail.

ParameterRequired?DescriptionDefault
osgi.bundle.licenseNoManifest header for bundle license.
osgi.bundle.native.codeNoNative code specification (corresponds to OSGi manifest header 'Bundle-NativeCode').
osgi.export.packageNoThe packages that will be exported by the bundle.
osgi.bundle.versionNoBundle version (corresponds to OSGi manifest header 'Bundle-Version').${version}
osgi.bundle.symbolic.nameNoThe (unique, non-localizable) symbolic name of the bundle, based on reverse domain name convention (corresponds to OSGi manifest header 'Bundle-SymbolicName').
osgi.bundle.fragment.hostNoHost bundle (for fragment bundles only, corresponds to OSGi manifest header 'Fragment-Host').
osgi.additional.manifestNoSpecify an additional manifest file${manifest.file}
osgi.bundle.doc.urlNoURL pointing to documentation about the created bundle (corresponds to OSGi manifest header 'Bundle-DocURL').
target.artifacts.main.bundle.nameYesmain artifact file name
osgi.bundle.required.execution.envNoList of execution environments (corresponds to OSGi manifest header 'Bundle-RequiredExecutionEnvironment').
osgi.bundle.classpathNoThe (internal) bundle classpath (corresponds to OSGi manifest header 'Bundle-Classpath').
osgi.bundle.contact.addressNoVendor's contact address (corresponds to OSGi manifest header 'Bundle-ContactAddress').
osgi.bundle.activatorNoThe bundle activator class (corresponds to OSGi manifest header 'Bundle-Activator').
osgi.dynamic.import.packageNoThe packages that should be dynamically import when needed.
osgi.bundle.vendorNoVendor name (corresponds to OSGi manifest header 'Bundle-Vendor').
osgi.import.packageNoThe packages that will be imported by the bundle.
osgi.bundle.nameNoName of the bundle (corresponds to OSGi manifest header 'Bundle-Name').
osgi.export.serviceNoThe OSGi R3 'Export-Service' header, deprecated for R4
osgi.include.resource.headerNoWhether to include the include-resource header in the manifest.
osgi.bundle.require.bundleNoRequired exports from another bundle (corresponds to OSGi manifest header 'Require-Bundle').
osgi.private.packageNoThe private packages of the generated bundle (i.e. packages that are not exported).
osgi.import.serviceNoThe OSGi R3 'Import-Service' header, deprecated for R4.
osgi.bundle.localizationNoLocation in the bundle where localization files can be found (corresponds to OSGi manifest header 'Bundle-Localization').
osgi.include.resourceNoResource to include in the generated bundle.
osgi.bundle.descriptionNoBundle description text (corresponds to OSGi manifest header 'Bundle-Description').
osgi.bundle.copyrightNoCopyright header (corresponds to OSGi manifest header 'Bundle-Copyright').
target.artifactsYesdestination directory for target artifacts

Build Phases

This plugin adds targets to each of the following build phases:

validate
  • init
package
  • bundle

Extra Targets

This plugin defines some extra Ant targets not attached to any build phase:




EasyAnt Plugin osgi-bundle-ant v0.2.0