0

I need to add an attribute to MANIFEST.MF with an empty value. This doesn't work:

Foo-Attrib:

java.util.jar.Manifest can't load such a file and throws an exception. What is a possible workaround?

4

1 回答 1

2

通过阅读 JAR 文件规范,您可以拥有一个空值的属性。但是':'之后必须有一个空格字符。

(规范的相关部分在这里。)

于 2011-11-14T09:27:46.000 回答