Skip to content

Commit

Permalink
Use Machine Web Settings (Proxy etc.) to Download JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironeer authored and mfilippov committed Jan 16, 2024
1 parent c859241 commit 70c0c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if errorlevel 1 goto fail

echo Downloading %JVM_URL% to %BUILD_DIR%\%JVM_TEMP_FILE%
if exist "%JVM_TEMP_FILE%" DEL /F "%JVM_TEMP_FILE%"
"%POWERSHELL%" -nologo -noprofile -Command "Set-StrictMode -Version 3.0; $ErrorActionPreference = \"Stop\"; (New-Object Net.WebClient).DownloadFile('%JVM_URL%', '%JVM_TEMP_FILE%')"
"%POWERSHELL%" -nologo -noprofile -Command "Set-StrictMode -Version 3.0; $ErrorActionPreference = \"Stop\"; $browser = New-Object Net.WebClient; $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; $browser.DownloadFile('%JVM_URL%', '%JVM_TEMP_FILE%')"
if errorlevel 1 goto fail

POPD
Expand Down

0 comments on commit 70c0c80

Please sign in to comment.