[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 <[email protected]>
This commit is contained in:
co-authored by
Nikita Bykov
parent
7457b9fecb
commit
d20a55914c
@@ -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