org.das2.util
Class AboutUtil

java.lang.Object
  extended by org.das2.util.AboutUtil

public class AboutUtil
extends java.lang.Object

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


Constructor Summary
AboutUtil()
           
 
Method Summary
static java.lang.String getAboutHtml()
           
static java.util.List<java.lang.String> getBuildInfos()
          searches class path for META-INF/build.txt, returns nice strings
static java.lang.String getReleaseTag()
          Identify the release version by looking a non-null build.tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AboutUtil

public AboutUtil()
Method Detail

getAboutHtml

public static java.lang.String getAboutHtml()

getBuildInfos

public static java.util.List<java.lang.String> getBuildInfos()
                                                      throws java.io.IOException
searches class path for META-INF/build.txt, returns nice strings

Returns:
one line per jar
Throws:
java.io.IOException

getReleaseTag

public static java.lang.String getReleaseTag()
                                      throws java.io.IOException
Identify the release version by looking a non-null build.tag. It's expected that the build script will insert build.tag into META-INF/build.txt

Returns:
build tag, which should not contain spaces, or null if no tag is found.
Throws:
java.io.IOException