You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2011/11/08 02:39:47 UTC

svn commit: r1199047 - /thrift/trunk/lib/java/build.xml

Author: jfarrell
Date: Tue Nov  8 01:39:47 2011
New Revision: 1199047

URL: http://svn.apache.org/viewvc?rev=1199047&view=rev
Log:
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.


Modified:
    thrift/trunk/lib/java/build.xml

Modified: thrift/trunk/lib/java/build.xml
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/java/build.xml?rev=1199047&r1=1199046&r2=1199047&view=diff
==============================================================================
--- thrift/trunk/lib/java/build.xml (original)
+++ thrift/trunk/lib/java/build.xml Tue Nov  8 01:39:47 2011
@@ -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"/>