title: Tortoisesvn checkout with ant
body: <p>I have problems with TortoiseSVN checkout by ant task.</p>
  
  <h3>Environment variables</h3>
  
  <pre><code>   SVN=c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
  </code></pre>
  
  <h3>build.xml</h3>
  
  <pre><code>&lt;project name="svn-letu" basedir="." default="checkout"&gt;
  
    &lt;!--  all properties are in build.properties --&gt;
    &lt;property file="constants.properties" /&gt; 
  
    &lt;!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib --&gt;
    &lt;path id="svn.classpath"&gt;
      &lt;fileset dir="lib"&gt;
          &lt;include name="*.jar"/&gt;
      &lt;/fileset&gt;
    &lt;/path&gt;  
  
    &lt;!-- load the svn task --&gt;
    &lt;typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svn.classpath" /&gt; 
  
  
    &lt;property name="checkoutDest" value="${checkout.dir}"/&gt;
  
    &lt;target name="init"&gt;
      &lt;mkdir dir="${checkoutDest}"/&gt;
    &lt;/target&gt;
  
    &lt;property name="svn-user" value="${svn.user}"/&gt;
    &lt;property name="svn-password" value="${svn.password}"/&gt;
    &lt;property name="svn-url" value="${project.svn.url}"/&gt;
  
    &lt;target name="checkout" depends="init"&gt;
      &lt;svn username="${svn-user}" password="${svn-password}"&gt;
        &lt;checkout url="${svn-url}" revision="HEAD" destPath="${checkoutDest}" /&gt;
      &lt;/svn&gt;
    &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  constants.properties
  
  <pre><code>project.svn.url=https://svnmsq.ttt.com/letu/trunk/App
  svn.user=Andrei
  svn.password=11111
  checkout.dir=proba
  </code></pre>
  
  <h3>Folder lib</h3>
  
  <pre><code>svnant.jar 
  svnClientAdapter.jar
  svnjavahl.jar
  </code></pre>
  
  <h3>Error</h3>
  
  <pre><code>Buildfile: d:\Ant Task\build.xml   [typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.
  
  init:
  
  checkout:
  
  BUILD FAILED d:\Ant Task\build.xml:36: Problem: failed to create task or type svn Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any &lt;presetdef&gt;/&lt;macrodef&gt; declarations have taken place.
  </code></pre>
  
  <p><strong>Somebody please help me</strong></p>