Please see inline a patch for making the OSGi build a tad cleaner:
sun.* is part of the JDK 6, and it would be best to not see it in the imports.
I also added the version to the packages, and removed the uses, as they just import the packages exported by this bundle.
This patch is part of the contribution https://issues.apache.org/jira/browse/CAMEL-3667 which aims at introducing a DNS component for Camel.
Patch:
--- build.xml (revision 1630)
+++ build.xml (working copy)
@@ -54,9 +54,10 @@
Bundle-Version: ${version}
Bundle-Name: dnsjava is an implementation of DNS in Java
Bundle-SymbolicName: org.xbill.dns
- Export-Package: org.xbill.DNS;uses:="org.xbill.DNS.utils",org.xbill.DNS.spi;uses:="org.xbill.DNS,sun.net.spi.nameservice",org.xbill.DNS.utils,org.xbill.DNS.windows
+ Export-Package: org.xbill.DNS;version=${version},org.xbill.DNS.spi;version=${version},org.xbill.DNS.utils;version=${version},org.xbill.DNS.windows;version=${version}
Bundle-Vendor: dnsjava.org
Bundle-RequiredExecutionEnvironment: J2SE-1.4
+ Import-Package: !org.xbill.DNS*,!sun.*,*
</echo>
<bndwrap
definitions="${dist_dir}"
I have no opinion on whether this is useful or not. Hopefully someone who knows something about the OSGi build will speak up.
Works for us (ECF)
Applied. Thanks!
Unfortunately, this just missed the last release.
Ticket moved from /p/dnsjava/patches/19/