Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-44

mark jars as executable archives on Solaris

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None

    Description

      Solaris contains some special code which allows people to mark jar
      files executable and run them as if they were native commands. It
      will only work for jars that contain the sequence 0xCAFE (in
      big-endian order) somewhere at the beginning, which is achieved by
      adding an extra field with that header id.

      See <https://issues.apache.org/bugzilla/show_bug.cgi?id=32649>

      This is the already existing JarMarker extra field in compress.

      Ant's <jar> task adds this extra field to the META-INF directory
      because it knows this is always going to be the very first entry for
      Ant created jars.

      I propose to modify JarArchiveOutputStream to add a JarMarker extra
      field to the very first entry written to the stream.

      Attachments

        Activity

          People

            bodewig Stefan Bodewig
            bodewig Stefan Bodewig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: