DEV Community

Query Filter
Query Filter

Posted on

docker109

// --- Added logic to display the Manifest ---
        println "MANIFEST ENTRIES:"
        java.util.jar.JarFile jf = new java.util.jar.JarFile(jarFile)
        def manifestAttributes = jf.manifest.mainAttributes
        manifestAttributes.each { key, value ->
            println "  ${key}: ${value}"
        }
        jf.close() // Always close the file handle
        println "------------------------------------------------------------"
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)