public class AboutUtil
extends java.lang.Object
| Constructor and Description |
|---|
AboutUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAboutHtml()
return HTML code describing the release version, Java version, build time, etc.
|
static java.util.List<java.lang.String> |
getBuildInfos()
searches class path for META-INF/build.txt, returns nice strings
|
static java.lang.String |
getJenkinsURL()
Identify the release by looking for build.jenkinsURL .
|
static java.lang.String |
getReleaseTag()
Identify the release version by looking a non-null build.tag.
|
static java.lang.String |
getReleaseTag(java.lang.Class clas)
return the tag assigned to the class, but looking for "META-INF/build.txt" in the jar file.
|
static boolean |
isJreVersionAtLeast(java.lang.String neededVersion)
evaluate if the current JRE version is at least a given level.
|
public static java.lang.String getAboutHtml()
public static java.util.List<java.lang.String> getBuildInfos()
throws java.io.IOException
java.io.IOException - when META-INF/build.txt cannot be loaded.public static java.lang.String getReleaseTag(java.lang.Class clas)
throws java.io.IOException
clas - java.io.IOExceptionpublic static boolean isJreVersionAtLeast(java.lang.String neededVersion)
throws java.text.ParseException
neededVersion - the Java version, such as "1.8.0_102"java.text.ParseException - if the JRE version reported doesn't match "(\\d+)\\.(\\d+)\\.\\d+\\_(\\d+)"public static java.lang.String getReleaseTag()
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getJenkinsURL()
throws java.io.IOException
java.io.IOException