Class Version


  • public class Version
    extends Object

    Determine version information from the artifact metadata. When the version cannot be determined, the version 0.0.0-GA is used.

    This class only uses classes provided by the Java Platform in order to be used without any further dependency. Information is logged through Logger on purpose instead of any other logger.

    This class provides a main class that can be executed to check the version manually (hence the reason it does not depend on any other class than the Java Platform):

    java -cp target/pc-portlet-2.4.1.CR03-SNAPSHOT.jar org.gatein.pc.portlet.Version
    Author:
    Julien Viet
    • Field Detail

      • VALUE

        public static final String VALUE
        .
      • MAJOR

        public static final int MAJOR
        .
      • MINOR

        public static final int MINOR
        .
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • main

        public static void main​(String[] args)