Thanks Jason,

Looking at drools, my maven files are set up almost
the same.  The difference being the location of the
grammar files, as you mentioned.  I tried to compile
drools with maven, but I couldn't download some jars. 
I did notice the package declaration on their
grammars, which mine didn't have.  So I included
those, and made sure to import them in my Main.java. 
Still no luck.  The class files were not being
generated for grammar.  The drools readme mentions ant
working better than maven, so I looked at the
build.xml file saw they were generating the java files
from the grammar files back into the src directory,
unlike the default target/antlr directory.  I added
one line to my project.properties
maven.antlr.target.dir=${maven.src.dir}/java/
and tried again.  It seems to be working now.

Does that seems right?  Has anyone ever generated java
files for a grammar to the target directory as is the
default for the maven_anltr plugin property
maven.antlr.target.dir.  Does that property need to be
defined in the drools project.properties.

Thanks again for the help.

Mike

--- Jason van Zyl <[EMAIL PROTECTED]> wrote:
> You can look here for a full example of how to use
> the Antlr plugin:
> 
>
http://cvs.codehaus.org/viewcvs.cgi/drools/?root=drools
> 
> The Antlr plugin doesn't assume the grammars are in
> src/antlr. You need
> to provide the full path to the grammar. At any rate
> the usage in drools
> should get you going.
> 
> 
> > -- 
> > jvz.
> > 
> > Jason van Zyl
> > [EMAIL PROTECTED]
> > http://tambora.zenplex.org
> > 
> > In short, man creates for himself a new religion
> of a rational
> > and technical order to justify his work and to be
> justified in it.
> >   
> >   -- Jacques Ellul, The Technological Society
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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

Reply via email to