开发者

Can I tag in Apache Subversion with NAnt?

开发者 https://www.devze.com 2023-01-01 15:50 出处:网络
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

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

精彩评论

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