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.
| Parameter | Required? | Description | Default |
|---|---|---|---|
| osgi.bundle.license | No | Manifest header for bundle license. | |
| osgi.bundle.native.code | No | Native code specification (corresponds to OSGi manifest header 'Bundle-NativeCode'). | |
| osgi.export.package | No | The packages that will be exported by the bundle. | |
| osgi.bundle.version | No | Bundle version (corresponds to OSGi manifest header 'Bundle-Version'). | ${version} |
| osgi.bundle.symbolic.name | No | The (unique, non-localizable) symbolic name of the bundle, based on reverse domain name convention (corresponds to OSGi manifest header 'Bundle-SymbolicName'). | |
| osgi.bundle.fragment.host | No | Host bundle (for fragment bundles only, corresponds to OSGi manifest header 'Fragment-Host'). | |
| osgi.additional.manifest | No | Specify an additional manifest file | ${manifest.file} |
| osgi.bundle.doc.url | No | URL pointing to documentation about the created bundle (corresponds to OSGi manifest header 'Bundle-DocURL'). | |
| target.artifacts.main.bundle.name | Yes | main artifact file name | |
| osgi.bundle.required.execution.env | No | List of execution environments (corresponds to OSGi manifest header 'Bundle-RequiredExecutionEnvironment'). | |
| osgi.bundle.classpath | No | The (internal) bundle classpath (corresponds to OSGi manifest header 'Bundle-Classpath'). | |
| osgi.bundle.contact.address | No | Vendor's contact address (corresponds to OSGi manifest header 'Bundle-ContactAddress'). | |
| osgi.bundle.activator | No | The bundle activator class (corresponds to OSGi manifest header 'Bundle-Activator'). | |
| osgi.dynamic.import.package | No | The packages that should be dynamically import when needed. | |
| osgi.bundle.vendor | No | Vendor name (corresponds to OSGi manifest header 'Bundle-Vendor'). | |
| osgi.import.package | No | The packages that will be imported by the bundle. | |
| osgi.bundle.name | No | Name of the bundle (corresponds to OSGi manifest header 'Bundle-Name'). | |
| osgi.export.service | No | The OSGi R3 'Export-Service' header, deprecated for R4 | |
| osgi.include.resource.header | No | Whether to include the include-resource header in the manifest. | |
| osgi.bundle.require.bundle | No | Required exports from another bundle (corresponds to OSGi manifest header 'Require-Bundle'). | |
| osgi.private.package | No | The private packages of the generated bundle (i.e. packages that are not exported). | |
| osgi.import.service | No | The OSGi R3 'Import-Service' header, deprecated for R4. | |
| osgi.bundle.localization | No | Location in the bundle where localization files can be found (corresponds to OSGi manifest header 'Bundle-Localization'). | |
| osgi.include.resource | No | Resource to include in the generated bundle. | |
| osgi.bundle.description | No | Bundle description text (corresponds to OSGi manifest header 'Bundle-Description'). | |
| osgi.bundle.copyright | No | Copyright header (corresponds to OSGi manifest header 'Bundle-Copyright'). | |
| target.artifacts | Yes | destination 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:
- doit