org.jwall
Class Version
java.lang.Object
org.jwall.Version
public class Version
- extends Object
This is a simple class for providing version information about this
package. The version information is obtained from the /org.jwall.web.audit.info file.
- Author:
- Christian Bockermann <chris@jwall.org>
Version
public Version(String ver,
String rev,
Date releaseDate)
Version
public Version(String groupId,
String artifactId,
String ver,
String rev,
String build,
Date releaseDate)
getVersion
public String getVersion()
- Returns:
- the version
setVersion
public void setVersion(String version)
- Parameters:
version - the version to set
getRevision
public String getRevision()
- Returns:
- the revision
setRevision
public void setRevision(String revision)
- Parameters:
revision - the revision to set
getReleased
public Date getReleased()
- Returns:
- the released
setReleased
public void setReleased(Date released)
- Parameters:
released - the released to set
getVersion
public static final Version getVersion(String groupId,
String artifactId)
toString
public String toString()
- Overrides:
toString in class Object
extractRevision
public static String extractRevision(String revision)
- This method extracts the revision number from the given string. The
input string is expected to simply contain the subversion $Revision...$
format.
- Parameters:
revision -
- Returns:
getBuild
public String getBuild()
main
public static void main(String[] args)
Copyright © 2012 jwall.org. All Rights Reserved.