MCPcopy Create free account
hub / github.com/TrsstProject/trsst / getBuildDate

Method getBuildDate

src/main/java/com/trsst/Common.java:732–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730 }
731
732 public static Date getBuildDate() {
733 Date result = null;
734 Attributes attributes = getManifestAttributes();
735 if (attributes != null) {
736 String dateString = attributes.getValue("Built-On");
737 try {
738 result = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
739 .parse(dateString);
740 } catch (Throwable t) {
741 log.warn("Could not parse build timestamp: " + dateString);
742 }
743 } else {
744 log.warn("Could not find manifest attributes.");
745 }
746 return result;
747 }
748
749 public static String getBuildId() {
750 Attributes attributes = getManifestAttributes();

Callers 1

mainMethod · 0.95

Calls 1

getManifestAttributesMethod · 0.95

Tested by

no test coverage detected