changeset 11189:393e3771fe1c

8217333: Pass additional arguments to gradle from build.ps1 Reviewed-by: kcr
author mennen
date Thu, 31 Jan 2019 10:02:35 -0800
parents bcd3723735f6
children b9d58e42f9f5
files tools/scripts/build.ps1
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/scripts/build.ps1	Wed Jan 30 15:45:43 2019 -0800
+++ b/tools/scripts/build.ps1	Thu Jan 31 10:02:35 2019 -0800
@@ -1,4 +1,7 @@
-param ([switch]$nocygwin = $false)
+param (
+[switch]$nocygwin = $false,
+[parameter(ValueFromRemainingArguments)][String[]]$args
+)
 
 choco install ant
 choco install vswhere
@@ -20,7 +23,7 @@
 $winSdk = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots").KitsRoot10 2>$null
 if ([string]::IsNullOrWhitespace($winSdk)) {
   choco install windows-sdk-7.1
-  $winSdk = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots" -ErrorAction Stop).KitsRoot10) 
+  $winSdk = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots" -ErrorAction Stop).KitsRoot10)
 }
 
 # Cygwin required for chmod
@@ -62,8 +65,8 @@
   }
 } else {
   if ($noCygwin) {
-    .\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=Debug -PUSE_CYGWIN=false --stacktrace -x :web:test --info --no-daemon
+    .\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=Debug -PUSE_CYGWIN=false --stacktrace -x :web:test --info --no-daemon $args
   } else {
-    .\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=Debug --stacktrace -x :web:test --info --no-daemon
+    .\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=Debug --stacktrace -x :web:test --info --no-daemon $args
   }
 }