title: How to checkout from SVN with an ANT task?
body: <p>I'm interested in <strong>any way</strong> that I can create an Ant task to checkout files from SubVersion. I "just" want to do the checkout from the command line. I've been using Eclipse with Ant and SubVersion for a while now, but my Ant and SubVersion knowledge is somewhat lacking as I relied on Eclipse to wire it all together.</p>
  
  <p>I've been looking at SvnAnt as one solution, which is part of Subclipse from Tigris at <a href="http://subclipse.tigris.org/svnant/svn.html" rel="noreferrer">http://subclipse.tigris.org/svnant/svn.html</a>. It may work fine, but all I get are NoClassDefFoundErrors. To the more experienced this probably looks like a simple Ant configuration problem, but I don't know about that. I copied the svnant.jar and svnclientadapter.jar into my Ant lib directory. Then I tried to run the following:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;project name="blah"&gt; 
  
   &lt;property environment="env"/&gt;
  
   &lt;path id="svnant.classpath"&gt;
    &lt;pathelement location="${env.ANT_HOME}/lib"/&gt;
    &lt;fileset dir="${env.ANT_HOME}/lib/"&gt;
     &lt;include name="svnant.jar"/&gt;
    &lt;/fileset&gt;
   &lt;/path&gt;
  
   &lt;typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" /&gt; 
  
   &lt;target name="checkout"&gt;
    &lt;svn username="abc" password="123"&gt;
     &lt;checkout url="svn://blah/blah/trunk" destPath="workingcopy"/&gt;
    &lt;/svn&gt;
   &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>To which I get the following response:</p>
  
  <pre><code>build.xml:17: java.lang.NoClassDefFoundError: org/tigris/subversion/javahl/SVNClientInterface
  </code></pre>
  
  <p>I am running SVN 1.7 and SvnAnt 1.3 on Windows XP 32-bit.</p>
  
  <p>Thanks for any pointers!</p>