Thrift-184: Add OSGi Manifest headers to the libthrift java library to be able to use Thrift in the OSGi runtime
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
diff --git a/lib/java/build.xml b/lib/java/build.xml
index 8002584..c0c2374 100644
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -116,6 +116,14 @@
     <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"/>