title: antlib and classpathref
body: <p>I have the following build.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project name="Minimal" default="default" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant"&gt;
      &lt;path id= "libs.folder" &gt;
           &lt;fileset dir= "lib" &gt;
               &lt;include name= "*.jar" /&gt; 
           &lt;/fileset&gt;
      &lt;/path&gt;
  
      &lt;typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="libs.folder" /&gt; 
      &lt;taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="libs.folder"/&gt;
      &lt;artifact:pom id="pom.file" file="pom.xml" /&gt;
      &lt;property name="pom.version" value="${pom.file.version}"/&gt;
  
     &lt;groovy src="test.groovy"&gt;
      &lt;arg line="3"/&gt;
     &lt;/groovy&gt;
  ...
  </code></pre>
  
  <p>which is located in the following structure:</p>
  
  <pre><code>my-project
    -&gt; lib
       -&gt; maven-ant-tasks.jar
       -&gt; svnant.jar
       -&gt; groovy-all.jar
       -&gt; svnClientAdapter.jar
    -&gt; build.xml
    -&gt; pom.xml
    -&gt; test.groovy
  </code></pre>
  
  <p>when I run the build file I get:</p>
  
  <pre><code>BUILD FAILED
  ....\build.xml:18: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:pom
  Cause: The name is undefined.
  Action: Check the spelling.
  </code></pre>
  
  <p>If I run with:</p>
  
  <pre><code>ant -lib lib
  </code></pre>
  
  <p>it works but it could be nice to keep everything inside the build.xml file - like with the groovy and svnant libs.</p>
  
  <p>is this possible with the maven-ant-tasks.jar somehow?</p>