Skip to content

Commit 9678ff5

Browse files
committed
Add 'export-package' declaration in Java driver jar so that mongodb classes are usable in an OSGi context JAVA-171
1 parent 05463b4 commit 9678ff5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<arg value="-1" />
8282
</exec>
8383

84-
<jar jarfile="mongo.jar" >
84+
<jar jarfile="mongo.jar" manifest="src/main/META-INF/MANIFEST.MF" >
8585
<fileset dir="build/main" />
8686
</jar>
8787

src/main/META-INF/MANIFEST.MF

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: MongoDB
4+
Bundle-SymbolicName: com.mongodb
5+
Bundle-Version: 2.1.0
6+
Export-Package: com.mongodb, com.mongodb.io, com.mongodb.util, com.mongodb.gridfs, org.bson, org.bson.util, org.bson.types, org.bson.io

0 commit comments

Comments
 (0)