Repository: archiva
Updated Branches:
  refs/heads/citest ec6cb02af -> a28e1363a


Test


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/a28e1363
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/a28e1363
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/a28e1363

Branch: refs/heads/citest
Commit: a28e1363adfd597ceb1466fe6a732af8f700b325
Parents: ec6cb02
Author: Martin Stockhammer <[email protected]>
Authored: Sun May 14 20:43:47 2017 +0200
Committer: Martin Stockhammer <[email protected]>
Committed: Sun May 14 20:43:47 2017 +0200

----------------------------------------------------------------------
 src/ci/scripts/updateSeleniumDrivers.ps1 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/a28e1363/src/ci/scripts/updateSeleniumDrivers.ps1
----------------------------------------------------------------------
diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 
b/src/ci/scripts/updateSeleniumDrivers.ps1
index 9e5047d..79752ba 100644
--- a/src/ci/scripts/updateSeleniumDrivers.ps1
+++ b/src/ci/scripts/updateSeleniumDrivers.ps1
@@ -43,8 +43,17 @@ if(!(Test-Path -Path $downloadDir )){
   New-Item -ItemType directory -Path $downloadFile
 
 }
+if ($Force -And (Test-Path -Path $downloadFile ) ) {
+  Remove-Item $downloadFile
+}
+
 if ($Force -Or !(Test-Path -Path $downloadFile )){
   Invoke-WebRequest -Uri $url -OutFile $downloadFile
-  [System.IO.Compression.ZipFile]::ExtractToDirectory($downloadFile, 
$downloadDir)
+
+  $shell = New-Object -ComObject shell.application
+  $zip = $shell.NameSpace($downloadFile)
+  foreach ($item in $zip.items()) {
+    $shell.Namespace($downloadDir).CopyHere($item)
+  }
 }
 

Reply via email to