Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-392

OSGI import requires ant.taskdef and javax.mail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.8
    • Component/s: Build
    • Labels:
      None
    • Environment:

      OSGI

      Description

      In the Manifest the OSGI Import-Package states, that commons configuration depends on org.apache.tools.ant.taskdefs and on javax.mail:

      Import-Package: javax.mail.internet,javax.naming,javax.servlet,javax.s
      ql,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,java
      x.xml.transform.stream,org.apache.commons.beanutils,org.apache.common
      s.codec.binary,org.apache.commons.collections,org.apache.commons.coll
      ections.iterators,org.apache.commons.collections.map,org.apache.commo
      ns.collections.set,org.apache.commons.configuration;version="1.6",org
      .apache.commons.configuration.beanutils;version="1.6",org.apache.comm
      ons.configuration.event;version="1.6",org.apache.commons.configuratio
      n.interpol;version="1.6",org.apache.commons.configuration.plist;versi
      on="1.6",org.apache.commons.configuration.reloading;version="1.6",org
      .apache.commons.configuration.tree;version="1.6",org.apache.commons.c
      onfiguration.tree.xpath;version="1.6",org.apache.commons.configuratio
      n.web;version="1.6",org.apache.commons.digester,org.apache.commons.di
      gester.substitution,org.apache.commons.digester.xmlrules,org.apache.c
      ommons.jxpath,org.apache.commons.jxpath.ri,org.apache.commons.jxpath.
      ri.compiler,org.apache.commons.jxpath.ri.model,org.apache.commons.lan
      g,org.apache.commons.lang.exception,org.apache.commons.lang.text,org.
      apache.commons.logging,org.apache.commons.logging.impl,org.apache.too
      ls.ant.taskdefs,org.w3c.dom,org.xml.sax,org.xml.sax.helpers

      As result of this, when developing RCP application and using commons configuration as OSGI bundle, the built client needs the ant bundle (and a bundle providing javax.mail) in the execution runtime!

      The worst thing is, that it looks like that ant is not even used within commons configuration itself - except for a javadoc comment which actually does not need an import (EnvironmentConfiguration).

      javax.mail cannot be found at all in the sources.

      In addition to that, also the imports to jxpath, SAX and javax.naming should be optional as those are only needed for specific configurations.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattin Martin Heitz
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.75h
                0.75h
                Remaining:
                Remaining Estimate - 0.75h
                0.75h
                Logged:
                Time Spent - Not Specified
                Not Specified