I’m trying to call an Antlr task in my Ant build.xml as follows:
<path id='classpath.build'> <fileset dir='${dir.lib.build}' includes='**/*.jar' /> </path> ... <target name='generate-lexer' depends='init'> <antlr target='${file.antlr.lexer}'> <classpath refid='classpath.build'/> </antlr> </target>
But Ant can’t find the task definition. I’ve put all of the following in that dir.lib.build:
- antlr-3.1.jar
- antlr-2.7.7.jar
- antlr-runtime-3.1.jar
- stringtemplate-3.2.jar
But none of those seems to have the task definition. (I’ve also tried putting those jars in my Ant classpath; same problem.)
The current Antlr-task jar is available at http://www.antlr.org/share/1169924912745/antlr3-task.zip
It can be found on the antlr.org website under the ‘File Sharing’ heading.