1

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?

2 Answers 2

2

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

0
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.

1
  • 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 2, 2010 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.