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

Regression: BND 0.0.295 does not augment Ignore-Package with excluded import packages

    Details

      Description

      Earlier releases of BND used to augment the Ignore-Package directive with any import packages the developer had explicitly excluded (for example when Bnd detects a package referred to by some class in the bundle, but the developer knows this will never actually be used at runtime, he/she would exclude it with !org.foo.bar). This was necessary so the verifier knew to ignore these packages during verification, and not report them as build errors.

      1. FELIX-843-20090129.patch
        4 kB
        Stuart McCulloch
      2. FELIX-843-BND-PATCH.txt
        4 kB
        Stuart McCulloch

        Activity

        Hide
        mcculls Stuart McCulloch added a comment -

        Suggested patch that lets the analyzer update the ignored package map

        (note: this patch also fixes a potential bug in looking up the BND version - the current method uses getClass() to find the bnd.info file - this is not guaranteed to work when the Analyzer has been subclassed, safer to use Analyzer.class instead)

        Show
        mcculls Stuart McCulloch added a comment - Suggested patch that lets the analyzer update the ignored package map (note: this patch also fixes a potential bug in looking up the BND version - the current method uses getClass() to find the bnd.info file - this is not guaranteed to work when the Analyzer has been subclassed, safer to use Analyzer.class instead)
        Hide
        mcculls Stuart McCulloch added a comment -

        Updated patch based on Bnd 0.0.308

        This lets you explicitly ignore certain packages (for example, ones detected by Bnd that aren't actually needed) without the verifier throwing all sorts of warnings about missing code.

        Show
        mcculls Stuart McCulloch added a comment - Updated patch based on Bnd 0.0.308 This lets you explicitly ignore certain packages (for example, ones detected by Bnd that aren't actually needed) without the verifier throwing all sorts of warnings about missing code.
        Hide
        pkriens Peter Kriens added a comment -

        Applied the patch in bnd.310

        Show
        pkriens Peter Kriens added a comment - Applied the patch in bnd.310
        Hide
        mcculls Stuart McCulloch added a comment -

        Closing as maven-bundle-plugin 2.0.0 has been released.

        Show
        mcculls Stuart McCulloch added a comment - Closing as maven-bundle-plugin 2.0.0 has been released.

          People

          • Assignee:
            pkriens Peter Kriens
            Reporter:
            mcculls Stuart McCulloch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development