public final class Version extends Object
This class retrieves the version information from META-INF/io.netty.versions.properties
, which is
generated in build time. Note that it may not be possible to retrieve the information completely, depending on
your environment, such as the specified ClassLoader
, the current SecurityManager
.
Modifier and Type | Method and Description |
---|---|
String |
artifactId() |
String |
artifactVersion() |
long |
buildTimeMillis() |
long |
commitTimeMillis() |
static Map<String,Version> |
identify()
Retrieves the version information of Netty artifacts using the current
context class loader.
|
static Map<String,Version> |
identify(ClassLoader classLoader)
Retrieves the version information of Netty artifacts using the specified
ClassLoader . |
String |
longCommitHash() |
static void |
main(String[] args)
Prints the version information to
System.err . |
String |
repositoryStatus() |
String |
shortCommitHash() |
String |
toString() |
public static Map<String,Version> identify()
public static Map<String,Version> identify(ClassLoader classLoader)
ClassLoader
.public static void main(String[] args)
System.err
.public String artifactId()
public String artifactVersion()
public long buildTimeMillis()
public long commitTimeMillis()
public String shortCommitHash()
public String longCommitHash()
public String repositoryStatus()
Copyright © 2008–2019 The Netty Project. All rights reserved.