[mac OS] Remove AdoptOpenJDK (#8025)

This commit is contained in:
Vasilii Polikarpov
2023-08-03 10:42:41 +02:00
committed by GitHub
parent 974c7589b9
commit 89acd994b2
6 changed files with 22 additions and 83 deletions

View File

@@ -12,11 +12,9 @@ function Get-JavaVersions {
$version = $javaPath.split('/')[5]
$fullVersion = $version.Replace('-', '+')
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
$vendorName = ($javaPath -like '*Java_Adopt_jdk*') ? "Adopt OpenJDK" : "Eclipse Temurin"
[PSCustomObject] @{
"Version" = $fullVersion + $defaultPostfix
"Vendor" = $vendorName
"Version" = $fullVersion + $defaultPostfix
"Environment Variable" = $_.Name
}
}