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

Method getBuildString

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

Source from the content-addressed store, hash-verified

757 }
758
759 public static String getBuildString() {
760 String result = null;
761 String[] keys = new String[] { "Implementation-Title",
762 "Implementation-Version", "Implementation-Build", "Built-On", };
763 Attributes attributes = getManifestAttributes();
764 if (attributes != null) {
765 Object value;
766 for (String key : keys) {
767 value = attributes.getValue(key);
768 if (value != null) {
769 if (result == null) {
770 result = value.toString();
771 } else {
772 result = result + ' ' + value.toString();
773 }
774 }
775 }
776 } else {
777 result = "trsst client";
778 }
779 return result;
780 }
781
782 /**
783 * Most trsst nodes run with self-signed certificates, so by default we

Callers 6

printAllUsageMethod · 0.95
pullMethod · 0.95
pushRawPostMethod · 0.95
pushToServiceMethod · 0.95
pullFromServiceMethod · 0.95

Calls 1

getManifestAttributesMethod · 0.95

Tested by

no test coverage detected