com.ecyrd.jspwiki
Class Release

java.lang.Object
  extended by com.ecyrd.jspwiki.Release

public class Release
extends Object

Contains release and version information.

Author:
Janne Jalkanen

Field Summary
static String APPNAME
          This is the default application name.
static int MINORREVISION
           
static int REVISION
           
static int VERSION
           
static String VERSTR
          This is the generic version string you should use when printing out the version.
 
Constructor Summary
Release()
           
 
Method Summary
static String getVersionString()
          This method is useful for templates, because hopefully it will not be inlined, and thus any change to version number does not need recompiling the pages.
static void main(String[] argv)
          Executing this class directly from command line prints out the current version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPNAME

public static final String APPNAME
This is the default application name.

See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values

REVISION

public static final int REVISION
See Also:
Constant Field Values

MINORREVISION

public static final int MINORREVISION
See Also:
Constant Field Values

VERSTR

public static final String VERSTR
This is the generic version string you should use when printing out the version. It is of the form "x.y.z-ttt".

See Also:
Constant Field Values
Constructor Detail

Release

public Release()
Method Detail

getVersionString

public static String getVersionString()
This method is useful for templates, because hopefully it will not be inlined, and thus any change to version number does not need recompiling the pages.

Since:
2.1.26.

main

public static void main(String[] argv)
Executing this class directly from command line prints out the current version. It is very useful for things like different command line tools.

Example:

  % java com.ecyrd.jspwiki.Release
  1.9.26-cvs