|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.util.VersionUtils
public class VersionUtils
Useful methods for retrieving versions from JARs and POMs associated with
Class objects.
| Constructor Summary | |
|---|---|
VersionUtils()
|
|
| Method Summary | |
|---|---|
static String |
getVersion(Class<?> c)
Looks up the version of the specified class using any means available. |
static String |
getVersion(Class<?> c,
String groupId,
String artifactId)
Looks up the version of the specified class using any means available. |
static String |
getVersionFromManifest(Class<?> c)
Looks up the version of the specified class using a JAR manifest if available. |
static String |
getVersionFromPOM(Class<?> c,
String groupId,
String artifactId)
Looks up the version of the specified class using the specified POM, or base POM directory if groupId and artifactId are
null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionUtils()
| Method Detail |
|---|
public static String getVersion(Class<?> c)
c - - Look up this Class's version
Class or null if not found.
public static String getVersion(Class<?> c,
String groupId,
String artifactId)
groupId and artifactId allow specification of the POM
lookup path.
c - - Look up this Class's versiongroupId - - GroupID containing classartifactId - - ArtifactID containing class
Class or null if not found.public static String getVersionFromManifest(Class<?> c)
c - - Look up this Class's version
Class or null if not found.
public static String getVersionFromPOM(Class<?> c,
String groupId,
String artifactId)
groupId and artifactId are
null.
c - - Look up this Class's versiongroupId - - GroupID containing classartifactId - - ArtifactID containing class
Class or null if not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||