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

Using a macro in Bundle-Version with the manifest goal causes garbage in the Export-Package and Private-Package headers.

    XMLWordPrintableJSON

Details

    Description

      If you put in the following macro (in either the bnd file or the maven pom) and use the manifest goal:

      Bundle-Version:
      $(version;===;$(replace;1.2.0-SNAPSHOT;-;.)).r1038-1250526024897
      Export-Package: *
      Private-Package: *

      The bnd tool is placing the macro string into Export-Package and
      Private-Package properties rather than performing the macro
      calculation
      first and then inserting the result into the Export-Package and
      Private-Package. What you get out is this:

      Export-Package: com.blah.blah;version="$(version;===;$(replace;1.2.0-SN
      APSHOT;-;.)).r1038-1250136103669"
      Private-Package: .;version="$(version;===;$(replace;1.2.0-SNAPSHOT;-;.
      )).r1038-1250136103669"
      Bundle-Version: 1.2.0.r1038-1250136103669

      Attachments

        Activity

          People

            mcculls Stuart McCulloch
            ericeberry Eric Berry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: