Package com.exasol.logging
Class VersionCollector
- java.lang.Object
-
- com.exasol.logging.VersionCollector
-
public class VersionCollector extends Object
This class fetches the version of the jar from the metadata in the jar file.
-
-
Constructor Summary
Constructors Constructor Description VersionCollector()Deprecated, for removal: This API element is subject to removal in a future version.useVersionCollector(String)instead to specify the path to the version file.VersionCollector(String path)Instantiates a new Version collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetVersionNumber()Gets version number of the current JAR file.
-
-
-
Constructor Detail
-
VersionCollector
public VersionCollector(String path)
Instantiates a new Version collector.- Parameters:
path- the path
-
VersionCollector
@Deprecated(since="18.0.2", forRemoval=true) public VersionCollector()
Deprecated, for removal: This API element is subject to removal in a future version.useVersionCollector(String)instead to specify the path to the version file. The default path is"META-INF/maven/com.exasol/virtual-schema-common-java/pom.properties".Instantiates a new Version collector.
-
-
Method Detail
-
getVersionNumber
public String getVersionNumber()
Gets version number of the current JAR file.- Returns:
- the version number
-
-