manifest.mf 文件的附加内容的约定?
除了 JAR 规范?我可能想要包含的有趣信息有:构建日期和其他构建信息、SVN 修订版,也许还有描述。我还没有找到如何命名相应键的建议。对于规范未涵盖的内容,是否存在任何事实上的标准或至少在清单中使用的通用键名称?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
JAR 清单:概述 提到“不理解的属性将被忽略。”除了主要属性 应该没问题。这是一个更全面的摘要链接和方便的实用程序来检查清单原位。
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.
您可以包含任何不违反规范的键/值对。 (例如值的长度)。至于如何做到这一点,这取决于您使用什么工具来创建清单。
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.
规范可能对编写好清单文件。
The specification might be useful for writing good manifest files.