Class GetVer

java.lang.Object
edu.wisc.ssec.mcidasv.util.GetVer

public class GetVer extends Object
This class is really just a wrapper around getVersion().

Note: this class is likely to be used in contexts where we don't have logging set up, so System.err and System.out are used.

  • Constructor Details

  • Method Details

    • getResourceAsStream

      Open for reading, a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader.
      Parameters:
      name - Resource to read.
      Returns:
      An InputStream for reading the resource given by name, or null.
    • getVersion

      public static String getVersion() throws Exception
      Extracts and returns McIDAS-V version information.
      Returns:
      String formatted like "McIDAS-V version VERSIONHERE built BUILDDATEHERE".
      Throws:
      Exception - if build.properties could not be loaded into a Properties object.
    • main

      public static void main(String[] args)
      The main. Get McIDAS-V version and build data and print it out.
      Parameters:
      args - Ignored.