|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.Release
public final class Release
Contains release and version information. You may also invoke this class directly, in which case it prints out the version string. This is a handy way of checking which JSPWiki version you have - just type from a command line:
% java -cp JSPWiki.jar org.apache.wiki.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.
Field Summary | |
---|---|
static String |
APPNAME
This is the default application name. |
static 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 String |
VERSTR
This is the generic version string you should use when printing out the version. |
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 boolean |
isNewerOrEqual(String version)
Returns true, if this version of JSPWiki is newer or equal than what is requested. |
static boolean |
isOlderOrEqual(String version)
Returns true, if this version of JSPWiki is older or equal than what is requested. |
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 |
---|
public static final String APPNAME
public static final int VERSION
public static final int REVISION
public static final int MINORREVISION
public static final 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 String VERSTR
Method Detail |
---|
public static String getVersionString()
public static boolean isNewerOrEqual(String version) throws IllegalArgumentException
version
- A version parameter string (a.b.c-something). B and C are optional.
IllegalArgumentException
- If the version string could not be parsed.public static boolean isOlderOrEqual(String version) throws IllegalArgumentException
version
- A version parameter string (a.b.c-something)
IllegalArgumentException
- If the version string could not be parsed.public static void main(String[] argv)
Example:
% java org.apache.wiki.Release 1.9.26-cvs
argv
- The argument string. This class takes in no arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |