You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Daniel Naber <lu...@danielnaber.de> on 2006/07/23 13:30:26 UTC
ant javacc-QueryParser
Hi,
as I cannot get "ant javacc-QueryParser" working I manually applied the
changes from my latest commit to QueryParser.java. The change was very
simple so I think this should be okay. Maybe someone can run "ant
javacc-QueryParser" just to be sure.
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: ant javacc-QueryParser
Posted by Simon Willnauer <si...@googlemail.com>.
> Yes, but I always get "Could not create task or type of type: javacc". I
> use a javacc that I downloaded and installed (i.e. unpacked) manually.
Could be anything... :) ant version?!
Anyway, I did run the javacc task with a javacc 3.2 version, the
generated files don't differ from your commit. So this should be fine.
regards simon
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: ant javacc-QueryParser
Posted by Daniel Naber <lu...@danielnaber.de>.
On Sonntag 23 Juli 2006 15:02, Simon Willnauer wrote:
> Did you set the property in your common-build.xml?
Yes, but I always get "Could not create task or type of type: javacc". I
use a javacc that I downloaded and installed (i.e. unpacked) manually.
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: ant javacc-QueryParser
Posted by Simon Willnauer <si...@googlemail.com>.
I did run the ant task after updating to your changes and I do have a
difference between the head and the generated file. But this is also
missing in revision < 424708.
Index: QueryParser.java
===================================================================
--- QueryParser.java (revision 424728)
+++ QueryParser.java (working copy)
@@ -1239,6 +1239,7 @@
final private void jj_rescan_token() {
jj_rescan = true;
for (int i = 0; i < 1; i++) {
+ try {
JJCalls p = jj_2_rtns[i];
do {
if (p.gen > jj_gen) {
@@ -1249,6 +1250,7 @@
}
p = p.next;
} while (p != null);
+ } catch(LookaheadSuccess ls) { }
}
jj_rescan = false;
}
On 7/23/06, Daniel Naber <lu...@danielnaber.de> wrote:
> Hi,
>
> as I cannot get "ant javacc-QueryParser" working I manually applied the
> changes from my latest commit to QueryParser.java.
Did you set the property in your common-build.xml?
If you use gentoo or debian and use emerge or apt-get to install
javacc the build file does not work. Package manager might change
directory structure. Just download javacc and set your path manually.
regards Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org