我可以使用 NAnt 标记 Apache Subversion 吗?

发布于 2024-09-03 18:53:28 字数 279 浏览 2 评论 0 原文

我需要构建多个环境并使用 Apache Subversion 中标记它们://en.wikipedia.org/wiki/NAnt" rel="nofollow noreferrer">NAnt 脚本。有没有一种方法可以让我使用 NAnt 通过我提供的变量在 Apache Subversion 中创建标签?

I need to build multiple environments and tag them in Apache Subversion using a NAnt script. Is there a way that I can use NAnt to create the tags in Apache Subversion with a variable I supply?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦萦几度 2024-09-10 18:53:28

为了完整起见, 中有 svn 任务nantcontrib 项目,尽管我想说文档有点薄。

For completeness, there is the svn task in the nantcontrib project, though I would say the documentation is a bit thin.

め可乐爱微笑 2024-09-10 18:53:28

是的。我自己没有与 nant 合作过,但考虑到有一个 < ;exec> 任务,您应该能够使用它来运行 Subversion CLI 客户端,如下所示:(

<exec program="svn" commandline='copy http://myserver/svn/trunk "http://myserver/svn/tags/${tag_name}"' />

我使用 此示例作为模型。)

在 Windows 上,我总是安装 Slik SVN 二进制文件 并将安装的 bin 目录添加到我的 PATH 中。

Yes. I haven't worked with nant myself, but given that there is an <exec> task, you should be able to use it to run the Subversion CLI client with something like:

<exec program="svn" commandline='copy http://myserver/svn/trunk "http://myserver/svn/tags/${tag_name}"' />

(I used this example as a model.)

On Windows, I always install the Slik SVN binaries and add the installation's bin directory to my PATH.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文