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)
cp
- the classpath as a string to be parsed.public static IVersionInfo getFromClasspath(List<String> classpath)
classpath
- the classpath as list of files/directories.public static String getVersion()
public static String getRevision()
public static String getBranch()
public static String getDate()
public static String getUser()
public static String getUrl()
public static String getSrcChecksum()
public static String getBuildVersion()
public static void main(String[] args)
Copyright © 2023 The Apache Software Foundation. All rights reserved.