[Windows] Remove AdoptOpenJDK (#8026)

This commit is contained in:
Vasilii Polikarpov
2023-08-03 10:32:48 +02:00
committed by GitHub
parent e1d1163c15
commit 974c7589b9
5 changed files with 27 additions and 91 deletions

View File

@@ -13,11 +13,9 @@ function Get-JavaVersions {
$versionInPath = (Split-Path $javaPath) -replace "\w:\\.*\\"
$version = $versionInPath -replace '-', '+'
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
$VendorName = ($javaPath -like '*Java_Adopt_jdk*') ? "Adopt OpenJDK" : "Eclipse Temurin"
[PSCustomObject] @{
"Version" = $version + $defaultPostfix
"Vendor" = $VendorName
"Version" = $version + $defaultPostfix
"Environment Variable" = $_.Name
}
}