Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSGi metadata for jffi and jffi native. #29

Merged
merged 1 commit into from Mar 8, 2016
Merged

Add OSGi metadata for jffi and jffi native. #29

merged 1 commit into from Mar 8, 2016

Conversation

tolbertam
Copy link
Contributor

Use maven-bundle-plugin to generate OSGi metadata and include it in the jar manifest. This does not impact the existing behavior of the jffi jar being an executable jar calling com.kenai.jffi.Main.

Inspired by the manifests from the jffi-native RPM. This adds metadata for both jffi and jffi-native jar. jffi-native is treated as a fragment of jffi.

Example manifests:

jffi:

Manifest-Version: 1.0
Bnd-LastModified: 1457061432285
Build-Jdk: 1.8.0_60
Built-By: atolbert
Bundle-Description: Java Foreign Function Interface
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: jffi
Bundle-SymbolicName: com.github.jnr.jffi
Bundle-Version: 1.2.11
Created-By: Apache Maven Bundle Plugin
Export-Package: com.kenai.jffi;version="1.2.11"
Main-Class: com.kenai.jffi.Main
Tool: Bnd-2.1.0.20130426-122213

jffi-native:

Manifest-Version: 1.0
Bnd-LastModified: 1457061432630
Build-Jdk: 1.8.0_60
Built-By: atolbert
Bundle-ClassPath: .,jni
Bundle-Description: Java Foreign Function Interface - Native Libraries
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: jffi
Bundle-SymbolicName: com.github.jnr.jffi.native
Bundle-Version: 1.2.11
Created-By: Apache Maven Bundle Plugin
Fragment-Host: com.github.jnr.jffi
Require-Bundle: com.github.jnr.jffi
Tool: Bnd-2.1.0.20130426-122213

Prior manifests:

jffi:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: atolbert
Build-Jdk: 1.8.0_60
Main-Class: com.kenai.jffi.Main

jffi-native:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: atolbert
Build-Jdk: 1.8.0_60

@headius
Copy link
Member

headius commented Mar 8, 2016

Thank you!

headius added a commit that referenced this pull request Mar 8, 2016
Add OSGi metadata for jffi and jffi native.
@headius headius merged commit eee8fde into jnr:master Mar 8, 2016
@headius headius added this to the 1.2.11 milestone Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants