Hi all,
Using Maven 2.0.6 and maven-antlr-plugin 2.0-beta-2-SNAPSHOT configured
as follows:
<configuration>
<sourceDirectory>${basedir}/src/main/antlr/com/acme/lang/compiler</sourceDirectory>
<!--
NOTE: I had to make the output go to source otherwise the build fails
-->
<outputDirectory>${basedir}/src/main/antlr/com/acme/lang/compiler</outputDirectory>
<grammarDefs>
<gammar>
<name>super.g</name>
</gammar>
<grammar>
<name>ext1.g</name>
<glib>super.g</glib>
</grammar>
<grammar>
<name>ext2.g</name>
<glib>super.g</glib>
</grammar>
</grammarDefs>
</configuration>
Otherwise I get the following errors:
[INFO] [antlr:generate {execution: default}]
[INFO] Using Antlr grammar:
C:\documents\pm\backyard\compiler\src\main\antlr\com\acme\lang\compiler\super.g
ANTLR Parser Generator Version 2.7.4 1989-2004 jGuru.com
[INFO] Using Antlr grammar:
C:\documents\pm\backyard\compiler\src\main\antlr\com
\acme\lang\compiler\ext1.g
ANTLR Parser Generator Version 2.7.4 1989-2004 jGuru.com
error: cannot find/copy importVocab file
C:\documents\pm\backyard\compiler\src\m
ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
error: cannot find/copy importVocab file
C:\documents\pm\backyard\compiler\src\m
ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
C:\documents\pm\backyard\compiler\target\generated-sources\antlr\com\acme\lang
\compiler\expandedext1.g:17:9: warning:Redefinition of token in toke
ns {...}: BLOCK
...and many other redefinition warnings ...
The same error is generated for each extN.
Adrian.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]