开发者

Can I tag in Apache Subversion with NAnt?

I need to build multiple environments and tag them in Apache Subversion using a NAnt sc开发者_如何学Goript. Is there a way that I can use NAnt to create the tags in Apache Subversion with a variable I supply?


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


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜