From 41590f5a58fb5fadd7511072da77bd6e59d94bdf Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sun, 22 Mar 2015 17:44:38 +1300 Subject: [PATCH] -Build --- Build/build.ps1 | 6 ++++-- Build/runbuild.ps1 | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Build/build.ps1 b/Build/build.ps1 index 5e4bb40b..8b22fd65 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -291,10 +291,12 @@ function Edit-XmlNodes { foreach ($node in $nodes) { if ($node -ne $null) { - if ($node.NodeType -eq "Element") { + if ($node.NodeType -eq "Element") + { $node.InnerXml = $value } - else { + else + { $node.Value = $value } } diff --git a/Build/runbuild.ps1 b/Build/runbuild.ps1 index 0a3910ee..0c20b341 100644 --- a/Build/runbuild.ps1 +++ b/Build/runbuild.ps1 @@ -1,4 +1,7 @@ -cls +param( + [hashtable] $parameters = @{}, + [hashtable] $properties = @{} +) $path = Split-Path -Path $MyInvocation.MyCommand.Path @@ -8,7 +11,7 @@ Import-Module ($path + '\..\Tools\PSake\psake.psm1') Try { write-host "Starting build.ps1" - Invoke-psake ($path + '\build.ps1') Test -framework 3.5 + Invoke-psake ($path + '\build.ps1') -properties $properties -parameters $parameters if ($psake.build_success -eq $false) {