Nova Ordis Utilities Version Metadata Handling

From NovaOrdis Knowledge Base
Revision as of 18:00, 16 November 2016 by Ovidiu (talk | contribs) (→‎Code)
Jump to navigation Jump to search

Internal

Overview

The mechanism relies on the presence of a "VERSION" metadata file in the application's classpath.

VersionUtilities.getVersion() and VersionUtilities.getReleaseDate() can be used as top-level API to locate, process and display the metadata.

In case the metadata file is not found, the both methods log the condition using SLF4J warn() and return null.

Code

https://github.com/NovaOrdis/novaordis-utilities/blob/master/src/main/java/io/novaordis/utilities/version/VersionUtilities.java