Hmm, I don't know what could be the cause of the poor performance. I've
never used ANTLR 3 much tbh. As for the task name, it is indeed defined by
the name attribute of the taskdef, but note that in your current working
example, you are using your own taskdef and are effectively bypassing the
antli
Hi Matt,
thanks: one step further!
I tried now
...
It seems to create parsers only when grammar changed, so it is ok, but:
it is very slow: 11 secs if no parser is created and 30 if grammars are
created.
So a large portion of ti
See inline for some commentary:
On Mon, Aug 19, 2013 at 2:28 AM, Ernst Reissner wrote:
> Ok, got one step further:
> now i have:
>
>
>
>
>
>
>
>
Here you define the task as being named "ant-antlr3":
> classname="org.apache.tools.ant.antlr.ANTLR3"
>
One side note: you are using 1.8.2 (Dec 2010) and I suggest updating to
1.9.1 (Jul 2013).
http://ant.apache.org/faq.html#history
> Ok, got one step further:
> now i have:
>
>
>
>
>
>
>
> classname="org.apache.tools.ant.antlr.ANTLR3"
> classpathref
Ok, got one step further:
now i have:
which seems to work.
But when i try to use the new task by
ant complaints
ernst@localhost:~/Software> ant genParser
Buildfile: /home/ernst/Software/build.xml
init:
genParser:
BUILD FAILED
/home/erns
Hi Jan,
i tried
>name="ant-antlr3"
> classname="org.apache.tools.ant.antlr.ANTLR3"
> />
as you suggested (which looks much better than what i did before).
Result
ernst@localhost:~/Software> ant genParser
Buildfile: /home/ernst/Software/build.xml
BUILD FAILED
/home/ernst/Software/
Ok, I understand. But how should they, i.e. the antlr-people define
their ant-task.
I am sure, they will do if we tell them.
> Okay, I apologize. The ANTLR wiki does in fact specify the XML namespace
> you are using, but technically they should not be hijacking an org.apache
> namespace in this ma
issner [mailto:rei3...@arcor.de]
> Gesendet: Montag, 19. August 2013 00:44
> An: user@ant.apache.org
> Betreff: Re: AW: Problems with ANTLR
>
> H,
> what I read is
> http://www.antlr.org/wiki/display/ANTLR3/How+to+use+ant+with+ANTLR3
>
> They suggest a test
> |$ ant
Okay, I apologize. The ANTLR wiki does in fact specify the XML namespace
you are using, but technically they should not be hijacking an org.apache
namespace in this manner, hence my confusion. :-(
Matt
On Aug 18, 2013 5:44 PM, "Ernst Reissner" wrote:
> H,
> what I read is
> http://www.antlr.
H,
what I read is
http://www.antlr.org/wiki/display/ANTLR3/How+to+use+ant+with+ANTLR3
They suggest a test
|$ ant -diagnostics
which should show
|
|\--\-|
|ANT_HOME/lib jar listing|
|\--\-|
|ant.home: /usr/share/a
That is not the namespace of the ANTLR task; its jar may not even be set up
as an antlib as such. You'll need to consult the documentation for the task
to find out the proper way to set it up.
Matt
On Aug 18, 2013 10:48 AM, "Ernst Reissner" wrote:
> Hello Jan,
> you mean that ant-antlr3.jar is n
Hello Jan,
you mean that ant-antlr3.jar is not in place?
I have it in /usr/share/ant/lib
and even if I provide ant -lib /home/ernst/Software/jars, where it is as
well, it does not work.
Ernst
> Maybe the antlib is not on the classpath?
> For loading antlibs via namespaces from custom classpath se
Maybe the antlib is not on the classpath?
For loading antlibs via namespaces from custom classpath see
http://ant.apache.org/manual/Types/antlib.html#loadFromInside
Jan
> -Ursprüngliche Nachricht-
> Von: Ernst Reissner [mailto:rei3...@arcor.de]
> Gesendet: Mittwoch, 7. August 2013 15:16
>
is not a task from Ant - it is one of the ANTLR parser generator.
Therefore you have to download the task implementation from the ANTLR website
and
provide it to Ant via "-lib" or one of the other suggested ways.
That's what the error message means.
Jan
>-Ursprüngliche Nachricht-
>Vo
14 matches
Mail list logo