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?
A:
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
2010-06-01 23:20:59
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
2010-06-02 00:39:35
+2
A:
For completeness, there is the svn
task in the nantcontrib project, though I would say the documentation is a bit thin.
Peter Lillevold
2010-06-02 06:26:35