|
|
@@ -19,13 +19,14 @@ Set-StrictMode -Version 1
|
|
|
|
|
|
$repoRoot = Resolve-Path "$PSScriptRoot\..\.."
|
|
|
$installDir = "$repoRoot\.tools\jdk\win-x64\"
|
|
|
+$javacExe = "$installDir\bin\javac.exe"
|
|
|
$tempDir = "$repoRoot\obj"
|
|
|
if (-not $JdkVersion) {
|
|
|
$globalJson = Get-Content "$repoRoot\global.json" | ConvertFrom-Json
|
|
|
$JdkVersion = $globalJson.tools.jdk
|
|
|
}
|
|
|
|
|
|
-if (Test-Path $installDir) {
|
|
|
+if (Test-Path $javacExe) {
|
|
|
if ($Force) {
|
|
|
Remove-Item -Force -Recurse $installDir
|
|
|
}
|