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.
| Constructor and Description |
|---|
Version(String ver,
String rev,
Date releaseDate) |
Version(String groupId,
String artifactId,
String ver,
String rev,
String build,
Date releaseDate) |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractRevision(String revision)
This method extracts the revision number from the given string.
|
String |
getBuild() |
Date |
getReleased() |
String |
getRevision() |
String |
getVersion() |
static Version |
getVersion(String groupId,
String artifactId) |
static void |
main(String[] args) |
void |
setReleased(Date released) |
void |
setRevision(String revision) |
void |
setVersion(String version) |
String |
toString() |
public String getVersion()
public void setVersion(String version)
version - the version to setpublic String getRevision()
public void setRevision(String revision)
revision - the revision to setpublic Date getReleased()
public void setReleased(Date released)
released - the released to setpublic static String extractRevision(String revision)
revision - public String getBuild()
public static void main(String[] args)
Copyright © 2013 jwall.org. All Rights Reserved.