diff options
author | Joni Jantti <joni.jantti@qt.io> | 2018-02-22 10:22:12 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-02-23 21:00:15 +0000 |
commit | b1a212b52ea909adc95078c0100f962762daef81 (patch) | |
tree | c19a34a9c2ee897febfe2cfebfe411d6bcbeba46 /coin/provisioning/common/windows/install-jdk.ps1 | |
parent | 54d8396d681c97ace18e2710394b8b34fa8f0411 (diff) |
Provisioning: Make Windows scripts use the Download helper function
Some Windows provisioning scripts use the Invoke-WebRequest without
setting the ProgressPreference = 'SilentlyContinue' variable for
disabling the download progress bar. Disabling the progress bar
greatly increases the download speed during provisioning.
Change-Id: I649c1bcc970577776d720a4ebf5a7af96c1603f8
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/install-jdk.ps1')
-rw-r--r-- | coin/provisioning/common/windows/install-jdk.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coin/provisioning/common/windows/install-jdk.ps1 b/coin/provisioning/common/windows/install-jdk.ps1 index f6cf6a66..63e5edaf 100644 --- a/coin/provisioning/common/windows/install-jdk.ps1 +++ b/coin/provisioning/common/windows/install-jdk.ps1 @@ -55,7 +55,7 @@ echo "Fetching Java SE $version..." $ProgressPreference = 'SilentlyContinue' try { echo "...from local cache" - Invoke-WebRequest -UseBasicParsing $url_cache -OutFile $javaPackage + Download $url_cache $url_cache $javaPackage } catch { echo "...from oracle.com" $client = new-object System.Net.WebClient @@ -63,7 +63,7 @@ try { $client.Headers.Add("Cookie", $cookie) $client.DownloadFile($official_url, $javaPackage) - Invoke-WebRequest -UseBasicParsing $official_url -OutFile $javaPackage + Download $official_url $official_url $javaPackage } Verify-Checksum $javaPackage $sha1 |