title: Where do I get the Antlr Ant task?
body: <p>I'm trying to call an Antlr task in my Ant build.xml as follows:</p>
  
  <pre><code>&lt;path id="classpath.build"&gt;
    &lt;fileset dir="${dir.lib.build}" includes="**/*.jar" /&gt;
  &lt;/path&gt;
  
  ...
  
  &lt;target name="generate-lexer" depends="init"&gt;
    &lt;antlr target="${file.antlr.lexer}"&gt;
      &lt;classpath refid="classpath.build"/&gt;
    &lt;/antlr&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>But Ant can't find the task definition.  I've put all of the following in that <code>dir.lib.build</code>:</p>
  
  <ul>
  <li>antlr-3.1.jar</li>
  <li>antlr-2.7.7.jar</li>
  <li>antlr-runtime-3.1.jar</li>
  <li>stringtemplate-3.2.jar</li>
  </ul>
  
  <p>But none of those seems to have the task definition.  (I've also tried putting those jars in my Ant classpath; same problem.)</p>