We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a0e56e commit 8b62081Copy full SHA for 8b62081
eng/scripts/InstallJdk.ps1
@@ -19,13 +19,14 @@ Set-StrictMode -Version 1
19
20
$repoRoot = Resolve-Path "$PSScriptRoot\..\.."
21
$installDir = "$repoRoot\.tools\jdk\win-x64\"
22
+$javacExe = "$installDir\bin\javac.exe"
23
$tempDir = "$repoRoot\obj"
24
if (-not $JdkVersion) {
25
$globalJson = Get-Content "$repoRoot\global.json" | ConvertFrom-Json
26
$JdkVersion = $globalJson.tools.jdk
27
}
28
-if (Test-Path $installDir) {
29
+if (Test-Path $javacExe) {
30
if ($Force) {
31
Remove-Item -Force -Recurse $installDir
32
0 commit comments