org.geotools.maven
Class JJTreeJavaCC

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.geotools.maven.JJTreeJavaCC
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JJTreeJavaCC
extends org.apache.maven.plugin.AbstractMojo

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:

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, Jesse McConnell, Martin Desruisseaux

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JJTreeJavaCC()
           
 
Method Summary
 void execute()
          Generates the source code from all .jjt and .jj files found in the source directory.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JJTreeJavaCC

public JJTreeJavaCC()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
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:
org.apache.maven.plugin.MojoExecutionException - if the plugin execution failed.
org.apache.maven.plugin.MojoFailureException


Copyright © 1996-2010 Geotools. All Rights Reserved.