CruiseControl.net spaces in <cb:define> field splitting path
I'm using the field to define a path within CC.NET, but the path has spaces in it. I use the definition within a robocopy task. However when I run the robocopy comm开发者_开发百科and in cruisecontrol.net, the path C:\my projects is being interpreted as C:\my.
How can I get around this problem? Thanks.
Assuming you are using preprocessor text constants it should be something like this:
<cb:define path=""C:\my projects"" />
As an alternative you could use quotation when you pass your preprocessor constant to the Robocopy task:
<cb:define path="C:\my projects" />
<!-- ... -->
<sourcecontrol type="robocopy">
<repositoryRoot>"$(path)"</repositoryRoot>
</sourcecontrol>
精彩评论