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

Gradle converts existing manifest attribute names to lower case when importing

    XMLWordPrintable

    Details

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

      Description

      I have an existing MANIFEST.MF I would like to include in my jar file, instead of having Gradle generate one for me. I can do this in the jar configuration:

      jar {
      manifest

      { from "mydir/MANIFEST.MF" }

      }

      Unfortunately, it seems Gradle imports this and converts all of the attribute names to lower case. While this technically meets the manifest standard, it is recommended to use the case as specified. There are instances where having lower case attribute names cause problems. In particular, some OSGi containers seem to have issues with lower case attribute names for bundle specifications and they do not detect the bundle if the bundle attribute names are lower case.

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            xbryan Bryan Keller
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: