Package org.apache.storm.utils
Class VersionInfo
java.lang.Object
org.apache.storm.utils.VersionInfo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the SCM branch of the build.static String
Get a descriptive representation of the build meant for human consumption.static String
getDate()
Get the date/time the build happened.static IVersionInfo
Look for the version of storm defined by the given classpath.static IVersionInfo
getFromClasspath
(List<String> classpath) Look for the version of storm defined by the given classpath.static String
Get the SCM revision number of the build.static String
Get the checksum of the source.static String
getUrl()
Get the full SCM URL for the build.static String
getUser()
Get the name of the user that did the build.static String
Get the version number of the build.static void
-
Field Details
-
OUR_FULL_VERSION
-
OUR_VERSION
-
-
Constructor Details
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
getFromClasspath
Look for the version of storm defined by the given classpath.- Parameters:
cp
- the classpath as a string to be parsed.- Returns:
- the IVersionInfo or null.
-
getFromClasspath
Look for the version of storm defined by the given classpath.- Parameters:
classpath
- the classpath as list of files/directories.- Returns:
- the IVersionInfo or null.
-
getVersion
Get the version number of the build.- Returns:
- the version number of the build.
-
getRevision
Get the SCM revision number of the build.- Returns:
- the SCM revision number of the build.
-
getBranch
Get the SCM branch of the build.- Returns:
- the SCM branch of the build.
-
getDate
Get the date/time the build happened.- Returns:
- the date/time of the build.
-
getUser
Get the name of the user that did the build.- Returns:
- the name of the user that did the build.
-
getUrl
Get the full SCM URL for the build.- Returns:
- the SCM URL of the build.
-
getSrcChecksum
Get the checksum of the source.- Returns:
- the checksum of the source.
-
getBuildVersion
Get a descriptive representation of the build meant for human consumption.- Returns:
- a descriptive representation of the build.
-
main
-