Package com.seeq.utilities.process
Class BuildInformation
java.lang.Object
com.seeq.utilities.process.BuildInformation
Helper class to retrieve data about the build of this assembly (version, etc.).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBuildTime
(Class<?> classWithAssemblyManifest) Retrieve the build time of this assembly, as recorded in its manifest file.static String
getManifestValue
(Class<?> classWithAssemblyManifest, String name) Retrieve a value as recorded in this assembly's manifest file.static String
getVersion
(Class<?> classWithAssemblyManifest) Read the Manifest file and extract the version information.
-
Constructor Details
-
BuildInformation
public BuildInformation()
-
-
Method Details
-
getVersion
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
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
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.
-