Skip to content

Package io.github.qishr.cascara.common.util

Class JarManifest

java.lang.Object
        io.github.qishr.cascara.common.util.Properties
                io.github.qishr.cascara.common.util.JarManifest


public class JarManifest
extends Properties

Method Summary

Modifier and Type Method Description
public static JarManifest parse(String manifest) Parses the content of a MANIFEST.MF file string, handles line continuations, and prints the resulting property names and values.
public static JarManifest of(Class<?> clazz)
public SemVer getVersion()

Methods inherited from Properties

set, isEmpty, set, toString, add, getBoolean, getString, addAll, remove, set, getString, duplicate, remove, containsKey, getValues, getLong, getInt, set, getDouble, asList, get, getValuesMap, clear

Method Details

parse

public static JarManifest parse(String manifest)

Parses the content of a MANIFEST.MF file string, handles line continuations, and prints the resulting property names and values.

Parameters:

manifest - The string containing the MANIFEST.MF file content.


of

public static JarManifest of(Class<?> clazz)


getVersion

public SemVer getVersion()