|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.geotools.maven.JJTreeJavaCC
public class JJTreeJavaCC
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.
maven-javacc-plugin
,
which explain why we retains the Apache copyright header. We didn't used The Mojo JavaCC plugin
because:
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.
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 |
---|
public JJTreeJavaCC()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
.jjt
and .jj
files found in the source
directory. First, all .jjt
files are processed using jjtree
. Then, all
generated .jj
files are processed.
org.apache.maven.plugin.MojoExecutionException
- if the plugin execution failed.
org.apache.maven.plugin.MojoFailureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |