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">