Hi,

On Thu, Jul 12, 2007 at 12:08:53PM +0200, Jochen Kuhnle wrote:
> I tried out the antlr3 plugin and ran into a dependency problem: 
> antlr-3.0 depends on stringtemplate-3.0 which depends on antlr-2.7.x. 
> Since antlr-2 and -3 are fundamentally incompatible (API packages 
> renamed, grammar file format changed), this does not work.

However, the two ANTLRs have different groupIds, so there should be no
problem due to these dependencies, I think?

  antlr:antlr:2.7.x  vs.  org.antlr:antlr:3.0

(Still pretty confusing though.)

What specific errors did you encounter?


> I propose to change the artifactId of antlr-3.0 to antlr3-3.0, and to 
> change the default directories of the plugin to "src/main/antlr3" and 
> "target/generated-sources/antlr3". This allows using antlr-2.x and 
> antlr-3.0 and the respective plugins side by side.

I took "src/main/antlr" as the default for the v3 plugin on the
assumption that if anyone wanted to do this, they could just specify
different folders by hand.  Also, IIRC, the v2 plugin does not have a
default directory for the v3 plugin to clash with -- you have to
explicitly tell it where to find the source v2 grammars, I think?

I think that most people will just be using one version of the plugin,
and the few wanting both can configure a non-default value.  If you can
show a reasonable case for changing the default, I'll take a look
though.


ta,
dave

-- 
http://david.holroyd.me.uk/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to