I had a bit of a problem getting SVN to work within Ant in Eclipse on a Windows machine. SvnAnt can use Java JNI to connect to some SVN DLLs but I couldn’t find where to download the DLLs. It can also use the command line version of SVN. I found the latter simpler to setup.
- Download SvnAnt
- Unzip it to somewhere
- In Eclipse goto Window > Preferences > Ant > Runtime > Classpath Tab and add the SvnAnt jars to Contributed Entries. The SvnAnt jars are in the lib directory of the SvnAnt download
- Download and install a command line SVN client like Silk SVN
- Add the location of the SVN command line client to your PATH environment variable (by going to Control Panel > System > Advanced Tab > Environment Variables Button. Use a semi-colon to seperate it from the existing entry)
More info on the SVN Task.