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?

yegor256
  • 102,010
  • 123
  • 446
  • 597

1 Answers1

2

By my reading of the JAR file spec, you can have an attribute with an empty value. But there must be a space character after the ':'.

(The relevant section of the spec is here.)

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216