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?
Asked
Active
Viewed 522 times
2 Answers
2
For completeness, there is the svn
task in the nantcontrib project, though I would say the documentation is a bit thin.

Peter Lillevold
- 33,668
- 7
- 97
- 131
0
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.

Daniel Trebbien
- 38,421
- 18
- 121
- 193
-
Thanks, this appears the way to go. I was looking for a task like snvant but I don't believe it exists on the nant side. Cheers. – Zero Cool Jun 02 '10 at 00:39