开发者

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="&quot;C:\my projects&quot;" />

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜