Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top