org.grinvin.about

Class VersionInfo


public class VersionInfo
extends java.lang.Object

Contains simple versioning info for a single module of GrInvIn.

Method Summary

String
getBuild()
Date string for the build.
String
getName()
Name of the module.
String
getRevision()
Revision number (from subversion).
String
getVersion()
Version number.
static VersionInfo
loadVersionInfo(String name)
Load version info from the corresponding properties file.

Method Details

getBuild

public String getBuild()
Date string for the build.

getName

public String getName()
Name of the module. E.g., core, factories, ...

getRevision

public String getRevision()
Revision number (from subversion). E.g. 1745M

getVersion

public String getVersion()
Version number. E.g. 1.0.3

loadVersionInfo

public static VersionInfo loadVersionInfo(String name)
Load version info from the corresponding properties file. Returns null when the file is not found and hence presumably the module is not in the class path.
Parameters:
name - Name of the module for which the information must be loaded.