1) I downloaded the antlr3-task.zip today from the antlr home page.
2) In the zip is a jar called antlr3_task.jar
3) I copied antlr3_task.jar to my eclipse ant plugin lib directory,
C:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib
4) I put this in my build.xml:
<antlr:antlr3 xmlns:antlr="antlib:org/apache/tools/ant/antlr"
target="${src.etc.dir}/parser/catos.g"
outputdirectory="${target.gen.java.dir}/${target.antlr.parser.dir}">
<classpath refid="compile.classpath"/>
</antlr:antlr3>
4) When I build I get:
BUILD FAILED
C:\workspace\ess-networking\build.xml:41: Problem: failed to create task or
type antlib:org/apache/tools/ant/antlr:antlr3
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-C:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib
-C:\Documents and Settings\nlaparo\.ant\lib
-a directory added on the command line with the -lib argument
# wrote:
>
> Hi,
>
> the ant-lib for the antlr3 task can be downloaded from here:
> http://antlr.org/share/1169924912745/antlr3-task.zip
> A short description of it's usage is enclosed in the zip-archive
> (antlr3-task.htm or antlr3-task.doc).
> Try the examples contained in the zip-archive. There is also an example on
> how to use the antlr3 task for ant in netbeans.
> If you still have questions, I will try to answer them.
>
> Kind regards, Jürgen
>
--
View this message in context:
http://old.nabble.com/Problems-with-ANTLR-tp23287211p28835592.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]