public final class Release
extends java.lang.Object
% java -cp JSPWiki.jar com.ecyrd.jspwiki.Release 2.5.38
As a historical curiosity, this is the oldest JSPWiki file. According to the CVS history, it dates from 6.7.2001, and it really hasn't changed much since.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPNAME
This is the default application name.
|
static java.lang.String |
BUILD
The build number/identifier.
|
static int |
MINORREVISION
The minor revision.
|
static int |
REVISION
The JSPWiki revision.
|
static int |
VERSION
The JSPWiki major version.
|
static java.lang.String |
VERSTR
This is the generic version string you should use
when printing out the version.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.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 boolean |
isNewerOrEqual(java.lang.String version)
Returns true, if this version of JSPWiki is newer or equal than what is requested.
|
static boolean |
isOlderOrEqual(java.lang.String version)
Returns true, if this version of JSPWiki is older or equal than what is requested.
|
static void |
main(java.lang.String[] argv)
Executing this class directly from command line prints out
the current version.
|
public static final java.lang.String APPNAME
public static final int VERSION
public static final int REVISION
public static final int MINORREVISION
public static final java.lang.String BUILD
If you are a person who likes to build his own releases, we recommend that you add your initials to this identifier (e.g. "13-jj", or 49-aj").
If the build identifier is empty, it is not added.
public static final java.lang.String VERSTR
public static java.lang.String getVersionString()
public static boolean isNewerOrEqual(java.lang.String version) throws java.lang.IllegalArgumentException
version
- A version parameter string (a.b.c-something). B and C are optional.java.lang.IllegalArgumentException
- If the version string could not be parsed.public static boolean isOlderOrEqual(java.lang.String version) throws java.lang.IllegalArgumentException
version
- A version parameter string (a.b.c-something)java.lang.IllegalArgumentException
- If the version string could not be parsed.public static void main(java.lang.String[] argv)
Example:
% java com.ecyrd.jspwiki.Release 1.9.26-cvs
argv
- The argument string. This class takes in no arguments.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.