NANT 中存在 svn 的等效项
如果 SVN url 已经存在,我需要使 nant 构建失败。本质上,我正在停止从已发布的代码进行进一步构建。在 ANT 中我会运行
<if>
<svnExists target="svn url" refid="svn.settings"/>
<then>
<fail>Can not give this build to QA - this number was already released to Operations</fail>
</then>
<else>
<echo message="good to go"/>
</else>
</if>
但我找不到对 NANT 执行此操作的等效方法,我需要在该项目中使用它。有想法吗?
I need to fail a nant build if an SVN url already exists. Essentially I am stopping further builds from released code. In ANT I would run
<if>
<svnExists target="svn url" refid="svn.settings"/>
<then>
<fail>Can not give this build to QA - this number was already released to Operations</fail>
</then>
<else>
<echo message="good to go"/>
</else>
</if>
But I can't find an equivalent way of doing this for NANT, which I need to use for this project. Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 svn 程序和 exec 任务来完成此操作。
You can do it with the svn program and the exec task.