Skip to content

Commit

Permalink
Fixing build on path with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Dec 29, 2009
1 parent cd1fd2a commit 991fa3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ properties {
$base_dir = resolve-path .
$lib_dir = "$base_dir\SharedLibs"
$build_dir = "$base_dir\build"
$buildartifacts_dir = "$build_dir\"

$sln_file = "$base_dir\Rhino.Mocks.sln"
$version = "3.6.0.0"
$humanReadableversion = "3.6"
Expand All @@ -17,7 +17,7 @@ include .\psake_ext.ps1
task default -depends Release

task Clean {
remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue
remove-item -force -recurse $build_dir -ErrorAction SilentlyContinue
remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue
}

Expand Down Expand Up @@ -63,12 +63,12 @@ task Init -depends Clean {
-copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009"

new-item $release_dir -itemType directory
new-item $buildartifacts_dir -itemType directory
new-item $build_dir -itemType directory
cp $tools_dir\xUnit\*.* $build_dir
}

task Compile -depends Init {
& msbuild $sln_file /p:OutDir=$buildartifacts_dir /p:Configuration=Release
& msbuild "$sln_file" "/p:OutDir=$build_dir\\" /p:Configuration=Release
if ($lastExitCode -ne 0) {
throw "Error: Failed to execute msbuild"
}
Expand Down

0 comments on commit 991fa3f

Please sign in to comment.