-
Notifications
You must be signed in to change notification settings - Fork 51
Manifest attributes in MANIFEST.MF
Andrey Hihlovskiy edited this page Apr 25, 2014
·
28 revisions
We already programmed manifest attributes in build.gradle. Now we will program manifest attributes in MANIFEST.MF.
- Create folder "tutorials/MyOsgiPlugin/src/main/resources/META-INF", create file "MANIFEST.MF" in it, insert code:
Bundle-SymbolicName: abcabc
Bundle-Name: someBundleName
Bundle-Version: 1212
Bundle-Classpath: aaaa,bbbb
Require-Bundle: org.eclipse.jface.text
Bundle-ManifestVersion: 2323
Bnd-LastModified: 8888888888888
Created-By: Batman
Tool: lololo
My-Attribute: test2
- Invoke on command line:
gradle build
- Open file "tutorials/MyOsgiPlugin/build/libs/MyOsgiPlugin-1.0.0.0.jar", open "META-INF/MANIFEST.MF", it should look like:
Manifest-Version: 1.0
Bundle-SymbolicName: MyOsgiPlugin
Bundle-Name: MyOsgiPlugin
Bundle-Version: 1.0.0.0
Bundle-Classpath: .
Require-Bundle: org.eclipse.jface.text,org.eclipse.osgi,ch.qos.logback
.classic
Bundle-ManifestVersion: 2
Bnd-LastModified: 1398419098000
My-Attribute: test2
Created-By: 1.8.0_05 (Oracle Corporation)
Tool: Bnd-2.1.0.20130426-122213