Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3597

Hard to debug fileinstall because shaded classes lack source in -sources.jar

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • fileinstall-3.2.2
    • fileinstall-3.2.6
    • File Install
    • None
    • Apache Karaf 2.2.7, IDEA 10.5

    Description

      fileinstall uses bnd arguments to slurp in classes from other jars:

      <Embed-Dependency>
             org.apache.felix.configadmin;inline="org/apache/felix/cm/file/ConfigurationHandler.*",
             org.apache.felix.utils;inline="org/apache/felix/utils/collections/DictionaryAsMap*.*"
      </Embed-Dependency>
      

      However, this does not pull the sources for those classes into the fileinstall-sources.jar file. This makes it difficult to debug into the classes (specifically, I got stuck trying to debug a parsing problem in ConfigurationHandler)

      I'm guessing this isn't the fault of fileinstall at all but instead is the fault of the maven plugin that does the shading...

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            cdolan Chris Dolan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: