public class ALDVersionProviderReleaseJar extends ALDVersionProvider
Modifier and Type | Field and Description |
---|---|
private static String |
releaseVersion
Release version or tag information.
|
Constructor and Description |
---|
ALDVersionProviderReleaseJar() |
Modifier and Type | Method and Description |
---|---|
private static String |
getReleaseVersion()
Returns the tag/release version.
|
private static String |
getReleaseVersion(String infofile)
Returns the release version/tag of the current jar archive.
|
String |
getVersion()
Returns the software version of currently running instance.
|
private static String releaseVersion
public String getVersion()
ALDVersionProvider
getVersion
in class ALDVersionProvider
private static String getReleaseVersion(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 './revision.txt' is included in the jar file.
infofile
- File where to find the version information.private static String getReleaseVersion()
Note that the tag or release information is assumed to be found in a file named "revision.txt" in the given jar archive.
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.