astcentric
Class BuildInfo

java.lang.Object
  extended by astcentric.BuildInfo

public class BuildInfo
extends java.lang.Object

Helper class which makes build and environment information available.


Nested Class Summary
static class BuildInfo.LibraryInfo
          Name and version of a library.
 
Field Summary
static BuildInfo BUILD_INFO
          The one and only one instance of this class.
 
Method Summary
 java.lang.String getJavaVM()
          Returns the version of the used Java VM.
 java.util.List<BuildInfo.LibraryInfo> getLibraryInfos()
          Returns the unmodifiable list of all libraries with a MANIFEST file defining Implementation-Title and Implementation-Version.
 java.lang.String getOS()
          Returns name and version of the used operation system.
static void main(java.lang.String[] args)
          Prints build and environment information onto the console.
 java.lang.String toString()
          Returns a multiline string with all build and environment informations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUILD_INFO

public static final BuildInfo BUILD_INFO
The one and only one instance of this class.

Method Detail

getLibraryInfos

public java.util.List<BuildInfo.LibraryInfo> getLibraryInfos()
Returns the unmodifiable list of all libraries with a MANIFEST file defining Implementation-Title and Implementation-Version. The order is determined by the order the MANIFEST files appear in the classpath.


getJavaVM

public java.lang.String getJavaVM()
Returns the version of the used Java VM.


getOS

public java.lang.String getOS()
Returns name and version of the used operation system.


toString

public java.lang.String toString()
Returns a multiline string with all build and environment informations.

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
Prints build and environment information onto the console.