de.unihalle.informatik.MiToBo.core.operator
Class MTBVersionProviderReleaseFile
java.lang.Object
de.unihalle.informatik.Alida.version.ALDVersionProvider
de.unihalle.informatik.MiToBo.core.operator.MTBVersionProviderReleaseFile
public class MTBVersionProviderReleaseFile
- extends de.unihalle.informatik.Alida.version.ALDVersionProvider
Info class which provides MiToBo plugins with version information from
release file in a jar archive.
- Author:
- moeller
Field Summary |
private static java.lang.String |
localVersion
Local version information. |
Method Summary |
private static java.lang.String |
getRepositoryTag()
Returns the tag/release of the current checkout, as specified
in a given info file. |
private static java.lang.String |
getRepositoryTag(java.lang.String infofile)
Returns the tag/release of the current jar. |
java.lang.String |
getVersion()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localVersion
private static java.lang.String localVersion
- Local version information.
MTBVersionProviderReleaseFile
public MTBVersionProviderReleaseFile()
getRepositoryTag
private static java.lang.String getRepositoryTag()
- Returns the tag/release of the current checkout, as specified
in a given info file.
- Parameters:
infofile
- file where to find the tag information
(for MiToBo this is usually './rev_info.txt'
- Returns:
- tag/release of checked out version or null if not available
getRepositoryTag
private static java.lang.String getRepositoryTag(java.lang.String infofile)
- Returns the tag/release of the current jar.
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.
- Parameters:
infofile
- file where to find the tag information
(for MiToBo this is usually './rev_info.txt'
- Returns:
- Tag of version or dummy string if tag not available.
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in class de.unihalle.informatik.Alida.version.ALDVersionProvider