Dr. Hans-Peter Störr
Dr. Hans-Peter Störr

Reputation: 25978

Conventions for additional content of the manifest.mf file?

Are there any conventions for the MANIFEST.MF file in a Java JAR beyond the JAR specification? Interesting information I might want to include are: Build date and other build information, SVN Revision, perhaps a description. I haven't found suggestions how to name the corresponding keys. Are there any de facto standards or at least common key names that are used in manifests for things that are not covered by the spec?

Upvotes: 5

Views: 1839

Answers (3)

trashgod
trashgod

Reputation: 205775

The JAR Manifest: Overview mentions that "Attributes which are not understood are ignored." Anything but a Main Attribute should be OK. Here's a somewhat more comprehensive summary link and a handy utility to examine the manifest in situ.

Upvotes: 2

michael667
michael667

Reputation: 3260

The specification might be useful for writing good manifest files.

Upvotes: 0

Andrew Thompson
Andrew Thompson

Reputation: 168815

You can include any key/value pair that does not break the spec. (e.g. in length of value). As to how to do it, it would depend on what tool you are using to create the manifest.

Upvotes: 1

Related Questions