org.apache.zookeeper
Class Version
java.lang.Object
org.apache.zookeeper.Version
- All Implemented Interfaces:
- Info
public class Version
- extends java.lang.Object
- implements Info
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Version
public Version()
getRevision
public static int getRevision()
getBuildDate
public static java.lang.String getBuildDate()
getVersion
public static java.lang.String getVersion()
getVersionRevision
public static java.lang.String getVersionRevision()
getFullVersion
public static java.lang.String getFullVersion()
printUsage
public static void printUsage()
main
public static void main(java.lang.String[] args)
- Prints the current version, revision and build date to the standard out.
- Parameters:
args
-
- --short - prints a short version string "1.2.3"
- --revision - prints a short version string with the SVN
repository revision "1.2.3-94"
- --full - prints the revision and the build date
Copyright © 2010 The Apache Software Foundation