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

Support BND directives in maven-bundle-plugin section of pom.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • framework-0.8.0, framework-1.0.0
    • framework-1.0.0
    • Maven Bundle Plugin
    • None

    Description

      The latest snapshot of the maven-bundle-plugin doesn't support BND directives (such as -donotcopy) in the pom.xml

      Unfortunately we can't have XML tags that start with '', so we have to use '_' in the XML and convert this to '' in the plugin.

      For example:

      <configuration>
      <instructions>
      <bundleName>My Bundle</bundleName>
      ... etc ...
      <_donotcopy>(CVS|.svn|..bak|~.)</_donotcopy>
      </instructions>
      </configuration>

      I have a simple patch for this issue, which also adds support for the '-include' directive to let you drag in other property files.
      This can be useful if you have a common set of manifest entries defined in a parent project - however, this requires a patch
      to BND to expose an API to process the include directive, as currently it's only processed when properties are loaded from
      a file - not when they are set programatically.

      Attachments

        1. support_directives.patch
          0.9 kB
          Stuart McCulloch
        2. FELIX-218-REPATCH.20070411.txt
          2 kB
          Stuart McCulloch
        3. bnd_include_directive.patch
          1 kB
          Stuart McCulloch
        4. bnd_include_directive_and_handle_manifests.patch
          2 kB
          Stuart McCulloch
        5. 20070303_directives.patch
          1 kB
          Stuart McCulloch

        Activity

          People

            rickhall Richard S. Hall
            mcculls Stuart McCulloch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: