Can values defined in MANIFEST.MF be accessed programmatically?

后端 未结 5 2072
暖寄归人
暖寄归人 2020-11-30 12:49

Can I access the values defined in a java manifest from code?

5条回答
  •  無奈伤痛
    2020-11-30 13:15

    Open the file with JarFile and then call getManifest() to get the Manifest. After that you can access the attributes appropriately.

提交回复
热议问题