public final class VersionInfo extends Object
Modifier and Type | Field and Description |
---|---|
static IVersionInfo |
OUR_FULL_VERSION |
static SimpleVersion |
OUR_VERSION |
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static String |
getBranch()
Get the SCM branch of the build.
|
static String |
getBuildVersion()
Get a descriptive representation of the build meant for human consumption.
|
static String |
getDate()
Get the date/time the build happened.
|
static IVersionInfo |
getFromClasspath(List<String> classpath)
Look for the version of storm defined by the given classpath.
|
static IVersionInfo |
getFromClasspath(String cp)
Look for the version of storm defined by the given classpath.
|
static String |
getRevision()
Get the SCM revision number of the build.
|
static String |
getSrcChecksum()
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 |
getVersion()
Get the version number of the build.
|
static void |
main(String[] args) |
public static final IVersionInfo OUR_FULL_VERSION
public static final SimpleVersion OUR_VERSION
public static IVersionInfo getFromClasspath(String cp)
Look for the version of storm defined by the given classpath.
cp
- the classpath as a string to be parsed.public static IVersionInfo getFromClasspath(List<String> classpath)
Look for the version of storm defined by the given classpath.
classpath
- the classpath as list of files/directories.public static String getVersion()
Get the version number of the build.
public static String getRevision()
Get the SCM revision number of the build.
public static String getBranch()
Get the SCM branch of the build.
public static String getDate()
Get the date/time the build happened.
public static String getUser()
Get the name of the user that did the build.
public static String getUrl()
Get the full SCM URL for the build.
public static String getSrcChecksum()
Get the checksum of the source.
public static String getBuildVersion()
Get a descriptive representation of the build meant for human consumption.
public static void main(String[] args)
Copyright © 2022 The Apache Software Foundation. All rights reserved.