|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.common.QpidProperties
public class QpidProperties
QpidProperties captures the project name, version number, and source code repository revision number from a properties file which is generated as part of the build process. Normally, the name and version number are pulled from the module name and version number of the Maven build POM, but could come from other sources if the build system is changed. The idea behind this, is that every build has these values incorporated directly into its jar file, so that code in the wild can be identified, should its origination be forgotten.
To get the build version of any Qpid code call themain(java.lang.String[])
method. This version string is usually also
printed to the console on broker start up.
Load build versioning information into the runtime, for code identification purposes. |
Field Summary | |
---|---|
static String |
BUILD_VERSION_PROPERTY
Defines the name of the source code revision property. |
static String |
PRODUCT_NAME_PROPERTY
Defines the name of the product property. |
static String |
RELEASE_VERSION_PROPERTY
Defines the name of the version property. |
static String |
VERSION_RESOURCE
The name of the version properties file to load from the class path. |
Constructor Summary | |
---|---|
QpidProperties()
|
Method Summary | |
---|---|
static String |
getBuildVersion()
Gets the source code revision. |
static String |
getProductName()
Gets the product name. |
static String |
getReleaseVersion()
Gets the product version. |
static String |
getVersionString()
Extracts all of the version information as a printable string. |
static void |
main(String[] args)
Prints the versioning information to the console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION_RESOURCE
public static final String PRODUCT_NAME_PROPERTY
public static final String RELEASE_VERSION_PROPERTY
public static final String BUILD_VERSION_PROPERTY
Constructor Detail |
---|
public QpidProperties()
Method Detail |
---|
public static String getProductName()
public static String getReleaseVersion()
public static String getBuildVersion()
public static String getVersionString()
public static void main(String[] args)
args
- Does not require any arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |