如何忽略可执行输出CruiseControl.Net建? [英] How to ignore output from executable with CruiseControl.Net build?

查看:91
本文介绍了如何忽略可执行输出CruiseControl.Net建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一点点查找和替换工具,叫做fart.exe(是的,放屁,如查找和替换文本)作为我的CC构建的一部分。伟大工程。

问题是,放屁,而它正在显示管,破折号组成的小ASCII微调,削减... | / - 。没有办法燮preSS此微调,和CC认为这些小符号是错误消息和生成失败。我试过:


  • 添加这些符号successexit codeS在CC - 同样的结果,显然只有整数工作

  • 通过与ECHO OFF的批处理文件调用放屁 - 它仍然输出微调,导致构建失败

任何其他的想法?

 <&EXEC GT;
<可执行指令GT; C:\\ fart.exe< /可执行>
< buildArgs> myfile.txt的字符串1字符串2< / buildArgs>
< successExit codeS> 1,0 LT; / successExit codeS>
< / EXEC>


解决方案

感谢您的答案,但我最后做两件事情:


  • 重新编译文本替换应用程序(屁)未经微调。即使这样CC后,仍然没有出于某种原因,所以我...

  • 感动一批可执行文件到的MSBuild文件,而不是CC的配置文件。 CC然后成功构建。

我敢肯定,如果我的理解CC更好,我可以去这个更好的办法,但现在该做的伎俩!

I'm running a little find and replace utility called fart.exe (yes, fart, as in Find and Replace Text) as part of my CC build. Works great.

The problem is that FART while it is working displays a little ASCII spinner composed of pipe, dash, slash... | / - . There isn't a way to suppress this spinner, and CC thinks these little symbols are error messages and the build fails. I've tried:

  • adding those symbols as successexitcodes in CC -- same result, apparently only ints work
  • Calling fart via a batch file with ECHO OFF -- it still outputs the spinner and causes the build to fail

Any other ideas?

<exec>
<executable>C:\fart.exe</executable>
<buildArgs>myfile.txt string1 string2</buildArgs>
<successExitCodes>1,0</successExitCodes>
</exec>

解决方案

Thanks for the answers, but I ended up doing two things:

  • Recompiled the text replacement app (fart) without the spinner. Even after doing this CC was still failing for some reason, so I...
  • Moved batch executables to the msbuild file instead of cc config file. CC then built successfully.

I'm sure if I understood CC better I could have gone about this better way but for now this does the trick!

这篇关于如何忽略可执行输出CruiseControl.Net建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆