I know how I can find and unzip the MANIFEST.MF
from a jar:
https://stackoverflow.com/a/7066174/927493
But MANIFEST.MF
has special formatting rules. Reading a "property" is harder than reading it from as "standard" property file because values may have line breaks.
What is a robust way to read a given property (like Implementation-URL
) from a MANIFEST.MF
using command line?
EDIT: I added an example. The broken lines seem to start with a space, but I haven't found a specification yet.
Build-Jdk: 1.8.0_161
Implementation-URL: http://ik-rep2.continentale.loc:8081/nexus/conten
t/sites/site/de.something/release-plugin-ear/0.1.5-SN
APSHOT/release-plugin-ear