Description
This tag generates java code based on Antlr
grammar files.
The grammars to generate are specified using nested grammar
tags.
Warning: The grammar files must be placed in the directory
specified by the maven.antlr.src.dir
variable. This hard coding
should be removed in a future release.
Attributes
Name | Description | Required |
---|
outputDir | The directory to place generated code into. | Yes |
Nested Elements
Name | Description | Required |
---|
grammar |
The file name (within maven.antlr.src.dir ) to use
in code generation.
. | No |
Examples
<j:jelly xmlns:j="jelly:core" xmlns:antlr="jelly:antlr">
<j:set var="maven.antlr.src.dir" value="${basedir}/grammars"/>
<antlr:antlr outputDir="${maven.antlr.target.dir}">
<antlr:grammar>file1.antlr</antlr:grammar>
</antlr:antlr>
</j:jelly>