Specify property names to make it easier to override options passed to ANTLR

This commit is contained in:
Sam Harwell 2012-12-01 15:58:29 -06:00
parent 747e65a92c
commit 52498a75f2
1 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ public class Antlr4Mojo extends AbstractMojo {
* If set to true then the ANTLR tool will generate a description of the atn * If set to true then the ANTLR tool will generate a description of the atn
* for each rule in <a href="http://www.graphviz.org">Dot format</a> * for each rule in <a href="http://www.graphviz.org">Dot format</a>
*/ */
@Parameter(defaultValue = "false") @Parameter(property = "antlr4.atn", defaultValue = "false")
protected boolean atn; protected boolean atn;
/** /**
@ -99,19 +99,19 @@ public class Antlr4Mojo extends AbstractMojo {
/** /**
* generate parse tree listener (default) * generate parse tree listener (default)
*/ */
@Parameter(defaultValue = "true") @Parameter(property = "antlr4.listener", defaultValue = "true")
protected boolean listener; protected boolean listener;
/** /**
* generate parse tree visitor * generate parse tree visitor
*/ */
@Parameter(defaultValue = "false") @Parameter(property = "antlr4.visitor", defaultValue = "false")
protected boolean visitor; protected boolean visitor;
/** /**
* treat warnings as errors * treat warnings as errors
*/ */
@Parameter(defaultValue = "false") @Parameter(property = "antlr4.treatWarningsAsErrors", defaultValue = "false")
protected boolean treatWarningsAsErrors; protected boolean treatWarningsAsErrors;
/** /**
@ -123,7 +123,7 @@ public class Antlr4Mojo extends AbstractMojo {
/** /**
* use the ATN simulator for all predictions * use the ATN simulator for all predictions
*/ */
@Parameter(defaultValue = "false") @Parameter(property = "antlr4.forceATN", defaultValue = "false")
protected boolean forceATN; protected boolean forceATN;
/* -------------------------------------------------------------------- /* --------------------------------------------------------------------