| org.geotools.maven.JJTreeJavaCC
JJTreeJavaCC | public class JJTreeJavaCC extends AbstractMojo (Code) | | Generates .java sources from .jjt files during Geotools build. This
Maven 2 plugin executes jjtree
first, followed by javacc . Both of them are part of the
JavaCC project.
This code is a derived work from the Mojo
maven-javacc-plugin ,
which explain why we retains the Apache copyright header. We didn't used The Mojo JavaCC plugin
because:
- It seems easier to control execution order in a single plugin (obviously
jjtree
must be executed before javacc , but I don't know how to enforce this order if
both of them are independent plugins registered in the generate-sources build
phase).
maven-javacc-plugin overwrites the values specified in the .jjt
file with its own default values, even if no such values were specified in the
pom.xml file. This behavior conflicts with Geotools setting for the
STATIC option.
Note: The default directories in this plugin are Maven default, even if this plugin target
Geotools build (which use a different directory structure).
version: $Id: JJTreeJavaCC.java 24765 2007-03-15 03:50:56Z desruisseaux $ author: jruiz author: Jesse McConnell author: Martin Desruisseaux |
Method Summary | |
public void | execute() Generates the source code from all
.jjt and
.jj files found in the source
directory. |
execute | public void execute() throws MojoExecutionException, MojoFailureException(Code) | | Generates the source code from all
.jjt and
.jj files found in the source
directory. First, all
.jjt files are processed using
jjtree . Then, all
generated
.jj files are processed.
throws: MojoExecutionException - if the plugin execution failed. |
|
|