Package com.arjuna.common.util
Class ConfigurationInfo
- java.lang.Object
-
- com.arjuna.common.util.ConfigurationInfo
-
public class ConfigurationInfo extends java.lang.ObjectUtility class providing access to build time and runtime configuration reporting functions. Replaces the old per-module Info (and in some cases Configuration and report) classes. The actual build information is injected during the build via the Maven Resources Plugin- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com) 2009-10
-
-
Constructor Summary
Constructors Constructor Description ConfigurationInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetBuildId()static java.lang.StringgetPropertiesFile()static java.lang.StringgetSourceId()static java.lang.StringgetVersion()static voidmain(java.lang.String[] args)Print config info to stdout.
-
-
-
Method Detail
-
getVersion
public static java.lang.String getVersion()
- Returns:
- the version, if known.
- See Also:
getSourceId()
-
getSourceId
public static java.lang.String getSourceId()
- Returns:
- the version control tag of the source used, or "unknown".
-
getPropertiesFile
public static java.lang.String getPropertiesFile()
- Returns:
- the name (not path) of the properties file
-
getBuildId
public static java.lang.String getBuildId()
- Returns:
- the build identification line indicating the os name and version and build date
-
main
public static void main(java.lang.String[] args)
Print config info to stdout.- Parameters:
args- unused
-
-