[I already sent this to lucene-dev but didn't hear anything there. Maybe
somebody in this group has been more successful using ant...
thanks - alex]
I am trying to compile demo using ant but I get the messages below. Am I
doing something wrong? Has anybody been able to compile the demo files using
ant?
The first time I get this out put
demo:
[javacc] Java Compiler Compiler Version 2.0 (Parser Generator)
[javacc] Copyright (c) 1996-2000 Sun Microsystems, Inc.
[javacc] Copyright (c) 1997-2000 Metamata, Inc.
[javacc] (type "javacc" with no arguments for help)
[javacc] Reading from file C:\lucene\demo\HTMLParser\HTMLParser.jj . . .
[javacc] File "TokenMgrError.java" does not exist. Will create one.
[javacc] File "ParseException.java" does not exist. Will create one.
[javacc] File "Token.java" does not exist. Will create one.
[javacc] File "ASCII_CharStream.java" does not exist. Will create one.
[javacc] Parser generated successfully.
BUILD SUCCESSFUL
But this doesn't really compile anything, it just runs JavaCC, creates a
directory "demo" under ant.build and puts all the generated files on
ant.build\src.
Thus I try to run it again and I get the following:
C:\lucene>ant demo
Buildfile: build.xml
init:
javacc_check:
compile:
[javac] Compiling 7 source files to C:\lucene\ant.build\classes
[javac] C:\lucene\ant.build\src\HTMLParser.java:64: cannot resolve
symbol
[javac] symbol : class ParserThread
[javac] location: class demo.HTMLParser.HTMLParser
[javac] Thread thread = new ParserThread(this);
[javac] ^
[javac] C:\lucene\ant.build\src\HTMLParser.java:158: cannot resolve
symbol
[javac] symbol : variable Entities
[javac] location: class demo.HTMLParser.HTMLParser
[javac] addText(Entities.decode(t.image));
afterTag = false;
[javac] ^
[javac] 2 errors
BUILD FAILED
C:\lucene\build.xml:161: Compile failed, messages should have been
provided.
Total time: 2 seconds
This time, at least it is trying to do compile, but the only class compiled
in ant.build\classes\demo\HTMLParser is ASCII_CharStream.class.
_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev