Add support for core.jar as OSGi bundle, component in BugLabs's BUG platform
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Mon, 16 Jun 2008 18:25:56 +0000 (18:25 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Mon, 16 Jun 2008 18:25:56 +0000 (18:25 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@435 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/build.xml

index b890d90..55f1602 100644 (file)
            debug="true"
            deprecation="true"
            fork="true"/>
-    <jar jarfile="core.jar" basedir="build" level="9"/>
+    <jar jarfile="core.jar" basedir="build" level="9">
+      <!-- These entries allow core.jar to function as an OSGi bundle, and also specifices
+           additional attributes for compatibility with BugLabs's BUG platform.
+           Thanks to David Albert for this change. -->
+      <manifest>
+        <attribute name="Bundle-Name" value="ZXing4Bug"/>
+        <attribute name="Bundle-Vendor" value="ZXing Project"/>
+        <attribute name="Bundle-SymbolicName" value="ZXing4Bug"/>
+        <attribute name="Bundle-Version" value="${version}"/>        
+        <attribute name="Export-Package" value="com.google.zxing,com.google.zxing.common,com.google.zxing.client.result"/>
+        <attribute name="Bug-Bundle-Type" value="Application"/>
+      </manifest>
+    </jar>
   </target>
 
   <target name="build-optimized" depends="build">