[antlr-interest] Build errors for ANTLR 3.13
Martin Probst
mail at martin-probst.com
Thu Apr 10 00:53:05 PDT 2008
Hi,
> When attempting to build ANTLR 3.13 from source, I get a set of
> 'duplicate
> class' compile-time errors in generated code:
I ran into this, too. The build.xml file is erroneous in some way. It
generates the parsers used by ANTLR in (I think) ./generated, and
includes that on the build path. But at the same time, these classes
already come checked in with the source in ./src.
I fixed this by manually copying the generated java sources
and .tokens files from ./generated to ./src and removing ./generated
from build.path in build.xml.
It would be nice though to have a working build file. I have no idea
why the generated files are checked in and included in ./src, I think
this is rather bad practice.
Regards,
Martin
More information about the antlr-interest
mailing list