Package aQute.lib.manifest
Class ManifestUtil
java.lang.Object
aQute.lib.manifest.ManifestUtil
Unfortunately we have to write our own manifest :-( because of a stupid bug
in the manifest code. It tries to handle UTF-8 but the way it does it it
makes the bytes platform dependent. So the following code outputs the
manifest. A Manifest consists of
'Manifest-Version: 1.0\r\n' main-attributes * \r\n name-section main-attributes ::= attributes attributes ::= key ': ' value '\r\n' name-section ::= 'Name: ' name '\r\n' attributesLines in the manifest should not exceed 72 bytes (! this is where the manifest screwed up as well when 16 bit unicodes were used).
As a bonus, we can now sort the manifest!
-
Method Summary
-
Method Details
-
write
- Throws:
IOException
-