public class ManifestTools extends Object
| Constructor and Description |
|---|
ManifestTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttributeFromManifest(File file,
String key)
Given a jar file and a key to retrieve from the jar's MANIFEST.MF file, confirms that the file is a jar returns
the value matching the key
|
static Attributes |
getAttributesFromManifest(File file) |
static Plugin |
readPluginFromFile(File file) |
public static Plugin readPluginFromFile(File file) throws IOException
IOExceptionpublic static Attributes getAttributesFromManifest(File file) throws IOException
IOException@CheckForNull public static String getAttributeFromManifest(File file, String key)
file - jar file to get manifest fromkey - key matching value to retrieveCopyright © 2004–2020. All rights reserved.