Class BuildInformation

java.lang.Object
com.seeq.utilities.process.BuildInformation

public class BuildInformation extends Object
Helper class to retrieve data about the build of this assembly (version, etc.).
  • Constructor Details

    • BuildInformation

      public BuildInformation()
  • Method Details

    • getVersion

      public static String getVersion(Class<?> classWithAssemblyManifest)
      Read the Manifest file and extract the version information.
      Parameters:
      classWithAssemblyManifest - The class which holds the assembly manifest to search.
      Returns:
      Get the version information.
    • getBuildTime

      public static String getBuildTime(Class<?> classWithAssemblyManifest)
      Retrieve the build time of this assembly, as recorded in its manifest file.
      Parameters:
      classWithAssemblyManifest - The class which holds the assembly manifest to search.
      Returns:
      The time of the build. "Unknown" if the build time was not found.
    • getManifestValue

      public static String getManifestValue(Class<?> classWithAssemblyManifest, String name)
      Retrieve a value as recorded in this assembly's manifest file.
      Parameters:
      classWithAssemblyManifest - The class which holds the assembly manifest to search.
      name - The name of the value to retrieve.
      Returns:
      The value of the provided manifest name. Null if no such value was found.