jaudiotagger
  1. jaudiotagger
  2. JAUDIOTAGGER-440

Generate OSGi MANIFEST.MF headers in the build

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When JAT is build into a JAR, it would be good if the MANIFEST.MF generated inside the JAR could include OSGi headers. This makes JAT an OSGi 'bundle' and suitable for deployment into an OSGi container.

      This gives a number of benefits:

      • Easy deployment for existing users of OSGi containers
      • Capability to modularise code better an disallow access to certain packages
      • Able to run multiple versions of JAT at once and have versions updated without restarting the VM

      I ported bliss to the OSGi platform and as part of this I adapted JAT to be an OSGi bundle. My method and example MANIFEST.MF is documented here:

      http://www.elstensoftware.com/blog/2012/08/15/osgi-jaudiotagger/

      BTW, adding these headers to the MANIFEST doesn't affect 'vanilla' Java VMs using the same JAR.

        Activity

        Hide
        paultaylor added a comment -

        Hi Dan, if you can provide a full patch including modified pom for doing this all automatically from maven then Im happy to add it in.

        Show
        paultaylor added a comment - Hi Dan, if you can provide a full patch including modified pom for doing this all automatically from maven then Im happy to add it in.
        Show
        paultaylor added a comment - Moved to https://bitbucket.org/ijabz/jaudiotagger/issue/26/generate-osgi-manifestmf-headers-in-the

          People

          • Assignee:
            Unassigned
            Reporter:
            elstensoftware
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: