Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1031

OSGi Manifest ignores attributes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9-rc-3

      Description

      Constructing an OSGi manifest ignores attributes, while a normal manifest does not. e.g.

      jar {
      manifest

      { attributes( 'Built-By':System.properties.'user.name', 'Another-Header':'foo' ) }

      }

      Will create a jar with the Built-By and Another-Header in the manifest. However, doing something similar with OSGi doesn't work.

      jar {
      manifest

      { attributes( 'Built-By':System.properties.'user.name', 'Another-Header':'foo' ) name = 'Foo' symbolicName = 'com.foo' version = '1.0.0' description = 'A Foo Package' docURL = 'http://www.mycompany.com' vendor = 'The Foo Corp.' license = 'A Spiffy License' instruction 'Import-Package', '*' instruction 'Export-Package', 'com.foo;version=' + version }

      }

      Under OSGi will create all of the appropriate OSGi headers, but will lack Built-By and Another-Header in the resulting manifest.

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            redshadow John Gibson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: