From 1d65e345de036fafa26d42c2584e2cad0f1fb6a2 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Wed, 20 Apr 2022 17:06:45 -0600 Subject: [PATCH] REad versions --- .../nshmp/netcdf/NetcdfVersion.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NetcdfVersion.java diff --git a/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NetcdfVersion.java b/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NetcdfVersion.java new file mode 100644 index 0000000..cda7eec --- /dev/null +++ b/src/lib/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NetcdfVersion.java @@ -0,0 +1,24 @@ +package gov.usgs.earthquake.nshmp.netcdf; + +import com.google.common.io.Resources; + +import gov.usgs.earthquake.nshmp.internal.AppVersion; +import gov.usgs.earthquake.nshmp.internal.LibVersion; +import gov.usgs.earthquake.nshmp.www.WsUtilsVersion; + +public class NetcdfVersion implements AppVersion { + + public static VersionInfo[] appVersions() { + VersionInfo[] versions = { + new NetcdfVersion().getVersionInfo(), + new LibVersion().getVersionInfo(), + new WsUtilsVersion().getVersionInfo(), + }; + return versions; + } + + public VersionInfo getVersionInfo() { + var resource = Resources.getResource("version/nshmp-ws-static-version.json"); + return AppVersion.versionInfo(resource); + } +} -- GitLab