INNER CODE UNIT · Java
getBuildTime
SoftInstigate/restheart · commons/src/main/java/org/restheart/Version.java:81
public Instant getBuildTime() {
return buildTime;
}
/**
*
* @return the build time defined in the MANIFEST.MF file, or now if not
* present
*/
private Instant extractBuildTime() {
final Set<Map.Entry<Object, Object>> manifestEntries = findManifestInfo();
return manifestEntries == null
? Instant.now()
: manifestEntries
.stream()
.filter(e -> e.getKey().toString().equals("Build-Time"))
.map(e -> (String) e.getValue())