org.das2.util.AboutUtil

method for getting useful build and version information. TODO: Splash should call this to get version, not the other way around.

AboutUtil( )


getAboutHtml

getAboutHtml( ) → String

return HTML code describing the release version, Java version, build time, etc.

Returns:

a String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getBuildInfos

getBuildInfos( ) → List

searches class path for META-INF/build.txt, returns nice strings

Returns:

one line per jar

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getJenkinsURL

getJenkinsURL( ) → String

Identify the release by looking for build.jenkinsURL . It's expected that the build script will insert build.tag into META-INF/build.txt

Returns:

build URL, or "" if one is not found.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getReleaseTag

getReleaseTag( java.lang.Class clas ) → String

return the tag assigned to the class, but looking for "META-INF/build.txt" in the jar file.

Parameters

clas - a java.lang.Class

Returns:

release tag or "(dev)" if the tag is not found.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getReleaseTag( ) → String

isJreVersionAtLeast

isJreVersionAtLeast( String neededVersion ) → boolean

evaluate if the current JRE version is at least a given level. This was introduced that

Parameters

neededVersion - the Java version, such as "1.8.0_102"

Returns:

true if the JRE is at least the version, or if the JRE cannot be parsed.

[search for examples] [view on GitHub] [view on old javadoc] [view source]