Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WKINT-311] Update install_java.ps1 to use absolute path for java.zip #484

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions windows/helpers/phase3/install_java.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Write-Host -ForegroundColor Green "Installing Java $ENV:JAVA_VERSION"
## https://aka.ms/download-jdk/microsoft-jdk-17.0.8-windows-x64.zip
$javazip = "https://aka.ms/download-jdk/microsoft-jdk-$($ENV:JAVA_VERSION)-windows-x64.zip"

$out = 'java.zip'
$out = "$($PSScriptRoot)\java.zip"

Write-Host -ForegroundColor Green "Downloading $javazip to $out"

Expand All @@ -18,7 +18,7 @@ mkdir c:\tmp\java

Write-Host -ForegroundColor Green "Extracting $out to c:\tmp\java"

Start-Process "7z" -ArgumentList 'x -oc:\tmp\java java.zip' -Wait
Start-Process "7z" -ArgumentList "x -oc:\tmp\java $out" -Wait

Write-Host -ForegroundColor Green "Removing temporary file $out"

Expand Down