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
I would try Ant 1.7beta1 and latest Ant-Contrib with the namespace declaration
- that's the future way.
And you can see inside your buildfile where the tasks come from.
(ac-AntContrib, sf-SmartFrog, au:AntUnit, svn:AntLib-Subversion, ...)
Jan
>-Ursprüngliche Nachricht-
>Von: Daniel Ca
cht-
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 1. September 2006 08:51
>An: user@ant.apache.org
>Betreff: AW: Problems with exec tag
>
>Your script works for me ...
>
>
>
>
>
>
&
Your script works for me ...
>I put the ant file below and the content of the test12.txt is
>// test exec file notepad.exe; notepad.exe
Not sure about the blank after ';'
Jan
-
${user.home}/.ant/lib as described in
http://ant.apache.org/manual/running.html#libs
Jan
>-Ursprüngliche Nachricht-
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Sonntag, 6. November 2005 15:57
>An: Ant Users List
>Betreff: Re: AW: Problems with option
How can I add the jsch (sshexec & scp) library without putting them into the
${ANT_HOME}/lib ... ?
It is OK on my local machine but I'd need the JSCH library on CruiseControle
too and there I
cannot add it to the shared environment for compatibility (obvious) reasons :(
\T,
--- [EMAIL PROTECTED
Your output of java.class.path is
/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-jdepend.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/ant/lib/ant.jar:/usr/local/ant/lib/ant-starteam.jar:/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/local/ant/lib/ant-ja
gt; Betreff: AW: Problems with
>
> Solved it in the meantime...
> But as I take a step forward, I discovered another issue
> I split my files using , and for what
> reason ever I get an empty source file within my result
> folder beside the splitted documents.
> Now I suppose
Solved it in the meantime...
But as I take a step forward, I discovered another issue
I split my files using , and for what reason ever I get an
empty source file
within my result folder beside the splitted documents.
Now I suppose that I have to delet those 0kb files.
How can I achieve that?
For and the files dont have to specified - use s.
Does the work then?
Jan
> -Ursprüngliche Nachricht-
> Von: Swathi Rao [mailto:[EMAIL PROTECTED]
> Gesendet am: Sonntag, 30. Januar 2005 21:21
> An: user@ant.apache.org
> Betreff: Problems with copying and renaming files
>
> Hi,
>
> I
> >
> >
>
> >You´re checking if two string are equal, not whether one
> contains the other.
>
> So, how to do that ?!
http://ant.apache.org/manual/CoreTasks/conditions.html
Jan
> Env = Win2000 / Ant 1.6.2 / ancontrib - 0.4
seems that you´re not using the latest AntContrib ...
> ** Problem Nr.1 =
>
> Avg-${infomail.project}-Developer <-- properties set above
>
>
> infomail_tolist.txt looks like :
>
> Avg-testproject
> -Developer
25 matches
Mail list logo