Menu

#91 OSGi packaging, without Sun imports

None
closed-accepted
nobody
None
5
2019-05-18
2011-02-16
Anonymous
No

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:

Index: build.xml

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

Discussion

  • Brian Wellington

    I have no opinion on whether this is useful or not. Hopefully someone who knows something about the OSGi build will speak up.

     
  • Markus Alexander Kuppe

    Works for us (ECF)

     
  • Brian Wellington

    Applied. Thanks!

    Unfortunately, this just missed the last release.

     
  • Brian Wellington

    • status: open --> closed-accepted
     
  • Ingo

    Ingo - 2019-05-18

    Ticket moved from /p/dnsjava/patches/19/