Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vendor Temurin in TKG #535

Open
llxia opened this issue Apr 18, 2024 · 0 comments
Open

Add vendor Temurin in TKG #535

llxia opened this issue Apr 18, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

Notice the following in the Grinder: https://ci.adoptium.net/view/Test_grinder/job/Grinder/9702/console

14:23:20  System.getProperty('java.vendor')=Temurin
14:23:20  
14:23:20  Warning: cannot determine vendor, use System.getProperty('java.vendor')=Temurin directly.
14:23:20  

code:

public String getJDKVendor() {
String vendor = System.getProperty("java.vendor");
System.out.println("System.getProperty('java.vendor')=" + vendor + "\n");
String vendorLC = vendor.toLowerCase();
if (vendorLC.contains("adoptopenjdk")) {
return "adoptopenjdk";
} else if (vendorLC.contains("eclipse")) {
return "eclipse";
} else if (vendorLC.contains("ibm") || vendorLC.contains("international business machines corporation")) {
return "ibm";
} else if (vendorLC.contains("alibaba")) {
return "alibaba";
} else if (vendorLC.contains("amazon")) {
return "amazon";
} else if (vendorLC.contains("azul")) {
return "azul";
} else if (vendorLC.contains("sap")) {
return "sap";
} else if (vendorLC.contains("bellsoft")) {
return "bellsoft";
} else if (vendorLC.contains("oracle")) {
return "oracle";
} else if (vendorLC.contains("red hat")) {
return "redhat";
} else if (vendorLC.contains("microsoft")) {
return "microsoft";
} else if (vendorLC.contains("loongson")) {
return "loongson";
} else if (vendorLC.contains("fujitsu")) {
return "fujitsu";
} else {
System.out.println("Warning: cannot determine vendor, use System.getProperty('java.vendor')=" + vendor + " directly.\n");
return vendor;
}

@llxia llxia added the good first issue Good for newcomers label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant