[minor] add openjdk to platform detector (#74)

Add an openjdk case to platform detector, changes client info from
`besu/v1.2.4/linux-x86_64/-ubuntu-openjdk64bitservervm-java-11`
to
`besu/v1.2.4/linux-x86_64/openjdk-java-11`
while preserving adoptopenjdk and oracle_openjdk cases.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
pull/83/head
Danno Ferrin 5 years ago committed by GitHub
parent 8d7cd3bc08
commit 2a785ab6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      besu/src/main/java/org/hyperledger/besu/util/PlatformDetector.java

@ -186,6 +186,9 @@ public class PlatformDetector {
if (javaVendor.contains("amazoncominc")) {
return "corretto";
}
if (javaVmName.contains("openjdk")) {
return "openjdk";
}
return "-" + javaVendor + "-" + javaVmName;
}

Loading…
Cancel
Save