Package esmska.update

Class VersionFile


  • public class VersionFile
    extends java.lang.Object
    Class describing and creating the version file.
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionFile()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create​(java.io.OutputStream out, java.lang.String stableProgramVersion, java.lang.String unstableProgramVersion)
      Create new version file printed to provided output stream
      static void main​(java.lang.String[] args)
      Create new version file printed to standard output
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VersionFile

        public VersionFile()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Create new version file printed to standard output
        Parameters:
        args - the command line arguments; the first argument is optional and may contain the latest stable program version to use; the second argument is optional and may contain the latest unstable program version to use
        Throws:
        java.lang.Exception
      • create

        public static void create​(java.io.OutputStream out,
                                  java.lang.String stableProgramVersion,
                                  java.lang.String unstableProgramVersion)
                           throws java.lang.Exception
        Create new version file printed to provided output stream
        Parameters:
        out - output stream, not null
        stableProgramVersion - latest stable program version, may be null
        unstableProgramVersion - latest unstable program version, may be null
        Throws:
        java.lang.Exception