Class VersionCollector


  • public class VersionCollector
    extends Object
    This class fetches the version of the jar from the metadata in the 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.
        use VersionCollector(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