Skip to content

Commit 6357a08

Browse files
appveyor build
1 parent 4954688 commit 6357a08

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

script/appveyor-install-jce.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ $packageName = $env:ChocolateyPackageName
1010
$url = 'http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip'
1111
$sha256 = 'f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59'
1212

13+
Write-Host "testtesttest22222"
14+
1315
$javaRegistryKeyName = if ($packageName -like 'jre*') {'Java Runtime Environment'} else {'Java Development Kit'}
1416
$javaHome = (Get-ItemProperty -Path "HKLM:\SOFTWARE\JavaSoft\$javaRegistryKeyName\1.8" -Name JavaHome).JavaHome
1517
$jreHome = if ($packageName -like 'jre*') {$javaHome} else {"$javaHome\jre"}
1618
$installPath = "$jreHome\lib\security"
1719
$tempPath = "$env:TEMP\$packageName"
1820
$artifactPath = "$tempPath\$(Split-Path -Leaf $url)"
1921

22+
Write-Host "testtesttest33333"
23+
2024
mkdir $tempPath -ErrorAction SilentlyContinue | Out-Null
2125
$webSession = New-Object Microsoft.PowerShell.Commands.WebRequestSession
2226
$webSession.Cookies.Add((New-Object System.Net.Cookie 'oraclelicense','accept-securebackup-cookie','/','.oracle.com'))
27+
28+
Write-Host "testtesttest44444"
2329
Invoke-WebRequest `
2430
$url `
2531
-UseBasicParsing `
@@ -31,10 +37,10 @@ if ($sha256 -ne $actualSha256) {
3137
}
3238
Add-Type -AssemblyName System.IO.Compression.FileSystem
3339
[IO.Compression.ZipFile]::ExtractToDirectory($artifactPath, $tempPath)
34-
40+
Write-Host "testtesttest55555"
3541
Copy-Item "$tempPath\UnlimitedJCEPolicyJDK8\*.jar" $installPath
3642

3743
Remove-Item -Recurse $tempPath\*
3844
Remove-Item $tempPath
3945

40-
Write-Host "testtesttest22222"
46+

0 commit comments

Comments
 (0)