org.mmbase
Class Version

java.lang.Object
  extended by org.mmbase.Version

public class Version
extends Object

MMBase version reporter. The only goal of this class is providing the current version of MMBase. The function 'get' will return it as one String.

Version:
$Id: Version.java 41174 2010-02-25 22:14:09Z michiel $
Author:
Daniel Ockeloen, Michiel Meeuwissen

Method Summary
static String get()
          Returns the version of this MMBase.
static String getBuildDate()
          Returns the build date of this MMBase.
static int getMajor()
          Returns the major version number of this MMBase.
static Manifest getManifest()
          Returns the Manifest of the jar in which this version is contained.
static int getMinor()
          Returns the minor version number of this MMBase.
static String getName()
          Returns the 'name' part of the MMBase version.
static String getNumber()
          Returns the version number of this MMBase.
static int getPatchLevel()
          Returns the patch level number of this MMBase.
static String getReleaseStatus()
          A String describing the status of this release.
static String getSCMRevision()
          Returns the SubVersion version from which the current jar was built.
static String getTag()
          Get Version Control tag
static boolean isRelease()
          Returns if this is a release version of MMBase.
static void main(String[] args)
          Prints the version of this mmbase on stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTag

public static String getTag()
Get Version Control tag

Returns:
version Control tag
Since:
MMBase-1.9

getName

public static String getName()
Returns the 'name' part of the MMBase version. This will normally be 'MMBase'.

Returns:
Name part of version
Since:
MMBase-1.6

getMajor

public static int getMajor()
Returns the major version number of this MMBase.

Returns:
major version number
Since:
MMBase-1.6

getMinor

public static int getMinor()
Returns the minor version number of this MMBase.

Returns:
minor version number
Since:
MMBase-1.6

getPatchLevel

public static int getPatchLevel()
Returns the patch level number of this MMBase.

Returns:
patch level number
Since:
MMBase-1.6

getBuildDate

public static String getBuildDate()
Returns the build date of this MMBase. During the build, the value of this is stored in builddate.properties.

Returns:
build date of this MMBase
Since:
MMBase-1.6

getSCMRevision

public static String getSCMRevision()
Returns the SubVersion version from which the current jar was built.

Since:
MMBase-1.9.1

getNumber

public static String getNumber()
Returns the version number of this MMBase.

Returns:
version number
Since:
MMBase-1.6

isRelease

public static boolean isRelease()
Returns if this is a release version of MMBase. If this is false this MMBase is only a CVS snapshot.

Returns:
is a release version
Since:
MMBase-1.6

getReleaseStatus

public static String getReleaseStatus()
A String describing the status of this release. Like 'final' or 'rc3'.

Returns:
status of this release
Since:
MMBase-1.7

get

public static String get()
Returns the version of this MMBase.

Returns:
version of this MMBase
Since:
MMBase-1.6

getManifest

public static Manifest getManifest()
Returns the Manifest of the jar in which this version is contained. Or null if it is not in a jar.

Since:
MMBase-1.9.1

main

public static void main(String[] args)
Prints the version of this mmbase on stdout. can be usefull on command line: java -jar mmbase.jar

Parameters:
args - command line args


MMBase 2.0-SNAPSHOT - null