org.mmbase
Class Version

java.lang.Object
  extended byorg.mmbase.Version

public class Version
extends java.lang.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,v 1.28.2.12 2005/09/21 23:53:42 michiel Exp $
Author:
Daniel Ockeloen, Michiel Meeuwissen

Constructor Summary
Version()
           
 
Method Summary
static java.lang.String get()
          Returns the version of this MMBase.
static java.lang.String getBuildDate()
          Returns the build date of this MMBase.
static int getMajor()
          Returns the major version number of this MMBase.
static int getMinor()
          Returns the minor version number of this MMBase.
static java.lang.String getName()
          Returns the 'name' part of the MMBase version.
static java.lang.String getNumber()
          Returns the version number of this MMBase.
static int getPatchLevel()
          Returns the patch level numer of this MMBase.
static java.lang.String getReleaseStatus()
          A String describing the status of this release.
static boolean isRelease()
          Returns if this is a release version of MMBase.
static void main(java.lang.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
 

Constructor Detail

Version

public Version()
Method Detail

getName

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

Since:
MMBase-1.6

getMajor

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

Since:
MMBase-1.6

getMinor

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

Since:
MMBase-1.6

getPatchLevel

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

Since:
MMBase-1.6

getBuildDate

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

Since:
MMBase-1.6

getNumber

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

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.

Since:
MMBase-1.6

getReleaseStatus

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

Since:
MMBase-1.7

get

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

Since:
MMBase-1.6

main

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



MMBase build 1.7.4.20050922