Thrift-184: Add OSGi Manifest headers to the libthrift java library to be able to...
authorJake Farrell <jfarrell@apache.org>
Tue, 8 Nov 2011 01:39:47 +0000 (01:39 +0000)
committerJake Farrell <jfarrell@apache.org>
Tue, 8 Nov 2011 01:39:47 +0000 (01:39 +0000)
Client: java
Patch: Jake Farrell

Updated manifest to add OSGI support.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1199047 13f79535-47bb-0310-9956-ffa450edef68

lib/java/build.xml

index 8002584..c0c2374 100644 (file)
     <jar jarfile="${jar.file}">
       <manifest>
         <attribute name="Implementation-Version" value="${version}"/>
+        <attribute name="Bundle-ManifestVersion" value="2"/>
+        <attribute name="Bundle-SymbolicName" value="${thrift.groupid}"/>
+        <attribute name="Bundle-Name" value="Apache Thrift"/>
+        <attribute name="Bundle-Version" value="${version}"/>
+        <attribute name="Bundle-Description" value="Apache Thrift library"/>
+        <attribute name="Bundle-License" value="${license}"/>
+        <attribute name="Bundle-ActivationPolicy" value="lazy"/>
+        <attribute name="Export-Package" value="${thrift.groupid};version=${version}"/>
       </manifest>
       <fileset dir="${build.dir}">
         <include name="org/apache/thrift/**/*.class"/>