向jar清单添加自定义标签 [英] Adding custom tags to jar manifest
问题描述
我有一个要求,其中我想在jar清单文件中放置一些用户定义的标签。我想知道是否有可能这样做?
I have a requirement wherein I wanted to put some user defined tags in jar manifest file. I was wondering if it is possible to do so?
- 如果是,可以是任何一个例子吗?
- 如果没有。 :(为什么不呢?
推荐答案
我想知道是否有可能这样做吗?
I was wondering if it is possible to do so?
是。
如果是,可以是任何一个例子吗?
If yes, any example?
silly-word: supercalafragilisticexpyaladocious
您可以自定义吗?
具体参见 JAR文件规范:清单规范属性和值。
- manifest-file:main-section newline * individual-section
- main-section:version-info newline * main-attribute
- version-info:Manifest-Version:version-number
- version-number:digit + {.digital +} *
- main-attribute :(任何合法的主要属性)换行符
- 个别部分:名称:值换行符* perentry-attribute
- perentry-attribute :(任何合法的perentry属性)换行符
- 换行符:CR LF | LF | CR(未跟随LF)
- 数字:{0-9}
- manifest-file: main-section newline *individual-section
- main-section: version-info newline *main-attribute
- version-info: Manifest-Version : version-number
- version-number : digit+{.digit+}*
- main-attribute: (any legitimate main attribute) newline
- individual-section: Name : value newline *perentry-attribute
- perentry-attribute: (any legitimate perentry attribute) newline
- newline : CR LF | LF | CR (not followed by LF)
- digit: {0-9}
在在上面的规范中,可以出现在主要部分中的属性被称为主要属性,而可以出现在各个部分中的属性被称为每个条目属性。某些属性可以出现在主要部分和各个部分中,在这种情况下,每个条目属性值将覆盖指定条目的主要属性值。两种类型的属性定义如下。 ..
In the above specification, attributes that can appear in the main section are referred to as main attributes, whereas attributes that can appear in individual sections are referred to as per-entry attributes. Certain attributes can appear both in the main section and the individual sections, in which case the per-entry attribute value overrides the main attribute value for the specified entry. The two types of attributes are defined as follows. ..
这篇关于向jar清单添加自定义标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!