mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
[Windows] Move the list of installed Java versions to toolset (#2369)
* added java to toolset * updated java tests * fixed windows2016.json * fixed tests * fixed java.Tests * fixed Java.Tests.ps1 Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
@@ -77,8 +77,8 @@ function Install-JavaFromAdoptOpenJDK {
|
||||
Extract-7Zip -Path $archivePath -DestinationPath $DestinationPath
|
||||
}
|
||||
|
||||
$jdkVersions = @(7, 8, 11, 13)
|
||||
$defaultVersion = 8
|
||||
$jdkVersions = (Get-ToolsetContent).java.versions
|
||||
$defaultVersion = (Get-ToolsetContent).java.default
|
||||
$javaRootPath = "C:\Program Files\Java\"
|
||||
|
||||
foreach ($jdkVersion in $jdkVersions) {
|
||||
|
||||
Reference in New Issue
Block a user