public class JarUtils extends Object
Constructor and Description |
---|
JarUtils() |
Modifier and Type | Method and Description |
---|---|
static Manifest |
getManifest(Class c)
gets manifest from JAR containing 'class'
If found as 'file://' try to get from execution root returns null if not found. |
static String |
getManifestEntry(Class c,
String entry)
gets specified manifest entry from JAR containing 'class'
|
static String |
getVersionFromProject(Class c)
tries to read version out of a built maven project
|
public static Manifest getManifest(Class c)
c
- the class filepublic static String getManifestEntry(Class c, String entry)
c
- the class fileentry
- the menifest entryCopyright © 2012–2017 tinyMediaManager. All rights reserved.