|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.version.ALDVersionProvider
de.unihalle.informatik.Alida.version.ALDVersionProviderReleaseJar
public class ALDVersionProviderReleaseJar
Info class which provides Alida operators with version information from a version file distributed with the release jar archive.
Field Summary | |
---|---|
private static java.lang.String |
releaseVersion
Release version or tag information. |
Constructor Summary | |
---|---|
ALDVersionProviderReleaseJar()
|
Method Summary | |
---|---|
private static java.lang.String |
getReleaseVersion()
Returns the tag/release version. |
private static java.lang.String |
getReleaseVersion(java.lang.String infofile)
Returns the release version/tag of the current jar archive. |
java.lang.String |
getVersion()
Returns the software version of currently running instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String releaseVersion
Constructor Detail |
---|
public ALDVersionProviderReleaseJar()
Method Detail |
---|
private static java.lang.String getReleaseVersion()
Note that the tag or release information is assumed to be found in a file named "rev_info.txt" in the given jar archive.
infofile
- File where to find the version/tag information.
private static java.lang.String getReleaseVersion(java.lang.String infofile)
If a file is passed to the function the tag/release information is
extracted from that file. If the file does not exist or is empty,
a dummy string is returned.
For Alida a file named './rev_info.txt' is included in the jar file.
infofile
- File where to find the version information.
public java.lang.String getVersion()
ALDVersionProvider
getVersion
in class ALDVersionProvider
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |