public class MTBVersionProviderReleaseFile
extends de.unihalle.informatik.Alida.version.ALDVersionProvider
| Modifier and Type | Field and Description | 
|---|---|
| private static String | localVersionLocal version information. | 
| private static String | revisionFileName of revision file from where to read revision information. | 
| Constructor and Description | 
|---|
| MTBVersionProviderReleaseFile() | 
| Modifier and Type | Method and Description | 
|---|---|
| private static String | getRepositoryTag()Returns the tag/release of the current checkout, as specified 
 in a given info file. | 
| private static String | getRepositoryTag(String infofile)Returns the tag/release of the current jar. | 
| static String | getRevisionFile()Request name of the revision file. | 
| String | getVersion() | 
| static void | setRevisionFile(String revFile)Set the name of the revision file. | 
private static String localVersion
private static String revisionFile
If the name needs to be changed to a non-default name this needs to be done prior to the first call of getVersion() of the provider.
public static void setRevisionFile(String revFile)
revFile - Name of file to be used.public static String getRevisionFile()
public String getVersion()
getVersion in class de.unihalle.informatik.Alida.version.ALDVersionProviderprivate static String getRepositoryTag(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.
infofile - file where to find the tag information,
                  for MiToBo this is usually './revision-mitobo.txt'private static String getRepositoryTag()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.