Class Version


  • public class Version
    extends Object
    Version utility: read the version from the Jar's manifest file.
    Author:
    Andreas Schwarte
    • Field Detail

      • log

        protected static final org.slf4j.Logger log
      • project

        protected String project
      • longVersion

        protected String longVersion
      • build

        protected String build
      • version

        protected String version
      • contact

        protected String contact
      • companyName

        protected String companyName
      • productName

        protected String productName
    • Method Detail

      • getVersionInfo

        public static Version getVersionInfo()
        Return the version instance
        Returns:
        the Version instance
      • getJarPath

        protected String getJarPath()
      • getVersionString

        public String getVersionString()
        Returns:
        the version string, i.e. 'FedX 1.0 alpha (build 1)'
      • printVersionInformation

        public void printVersionInformation()
        print information to Stdout
      • getProject

        public String getProject()
      • getDate

        public String getDate()
      • getLongVersion

        public String getLongVersion()
      • getBuild

        public String getBuild()
      • getVersion

        public String getVersion()
      • getContact

        public String getContact()
      • getCompanyName

        public String getCompanyName()
      • getProductName

        public String getProductName()
      • main

        public static void main​(String[] args)
        Prints the version info.
        Parameters:
        args -