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

Closed
llxia opened this issue Apr 18, 2024 · 1 comment · Fixed by #554
Closed

Add vendor Temurin in TKG #535

llxia opened this issue Apr 18, 2024 · 1 comment · Fixed by #554
Assignees
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
@Hajer-Dahmani
Copy link

I will take this.

Hajer-Dahmani pushed a commit to Hajer-Dahmani/TKG that referenced this issue May 26, 2024
Fixes: adoptium#535

Signed-off-by: Hajer Dahmani <hdahmani@andrew.cmu.edu>
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

Successfully merging a pull request may close this issue.

2 participants