How to integrate SVN into ANT
July 28th, 2009 at 9:34 pm No CommentsHere’s an easy way to checkout code from a Subversion repository (or do any Subversion related task) using Ant.
After you have Ant installed, you’ll need a SVN command line client. You can download a program like Slik SVN for this functionality. After you have both Ant and SVN working. You can do something like this…
<?xml version="1.0" encoding="UTF-8"?>
<project name="MyProject" basedir=".">
<description>
This build file will check out your code from a SVN repository.
</description>
<exec executable="svn">
<arg line="checkout http://www.example.com/svn/project/
--username test --password password"/>
</exec>
</project>
That’s all there is to it. Check out the Subversion Complete Reference for all the SVN commmands.























