Skip to content
Snippets Groups Projects
Commit ee823a1b authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

read version files

parent bcd6ac6f
No related branches found
No related tags found
2 merge requests!146Production Release | nshmp-ws,!145Resolves - Add Version Info
package gov.usgs.earthquake.nshmp.www;
import com.google.common.io.Resources;
import gov.usgs.earthquake.nshmp.internal.AppVersion;
import gov.usgs.earthquake.nshmp.internal.LibVersion;
public class WsVersion implements AppVersion {
public static VersionInfo[] appVersions() {
VersionInfo[] versions = {
new WsVersion().getVersionInfo(),
new LibVersion().getVersionInfo(),
new WsUtilsVersion().getVersionInfo(),
};
return versions;
}
public VersionInfo getVersionInfo() {
var resource = Resources.getResource("version/nshmp-ws-version.json");
return AppVersion.versionInfo(resource);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment