Skip to content

Commit

Permalink
Merge pull request cake-build#873 from heilingbrunner/develop
Browse files Browse the repository at this point in the history
GH874: To support Windows path with blanks, NSIS script file names must be w…
  • Loading branch information
devlead committed Jun 5, 2016
2 parents 142516e + b546d7d commit c68360c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Cake.Common.Tests/Unit/Tools/NSIS/MakeNSISRunnerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void Should_Add_Defines_To_Arguments_If_Provided()
var result = fixture.Run();

// Then
Assert.Equal("/DFoo=Bar /DTest /DTest2 /Working/Test.nsi", result.Args);
Assert.Equal("/DFoo=Bar /DTest /DTest2 \"/Working/Test.nsi\"", result.Args);
}

[Fact]
Expand All @@ -172,7 +172,7 @@ public void Should_Add_NoChangeDirectory_To_Arguments_If_Provided()
var result = fixture.Run();

// Then
Assert.Equal("/NOCD /Working/Test.nsi", result.Args);
Assert.Equal("/NOCD \"/Working/Test.nsi\"", result.Args);
}

[Fact]
Expand All @@ -186,7 +186,7 @@ public void Should_Add_NoConfig_To_Arguments_If_Provided()
var result = fixture.Run();

// Then
Assert.Equal("/NOCONFIG /Working/Test.nsi", result.Args);
Assert.Equal("/NOCONFIG \"/Working/Test.nsi\"", result.Args);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Cake.Common/Tools/NSIS/MakeNSISRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ private ProcessArgumentBuilder GetArguments(FilePath scriptFile, MakeNSISSetting
builder.Append("/NOCONFIG");
}

// Script file
builder.Append(scriptFile.MakeAbsolute(_environment).FullPath);
// Quoted Script file
builder.AppendQuoted(scriptFile.MakeAbsolute(_environment).FullPath);

return builder;
}
Expand Down

0 comments on commit c68360c

Please sign in to comment.