From 52498a75f2f1b1c8b12663a3b16e78e60722344c Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 1 Dec 2012 15:58:29 -0600 Subject: [PATCH] Specify property names to make it easier to override options passed to ANTLR --- .../main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java index 000f9a3cc..d4649d21d 100644 --- a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java +++ b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java @@ -87,7 +87,7 @@ public class Antlr4Mojo extends AbstractMojo { * If set to true then the ANTLR tool will generate a description of the atn * for each rule in Dot format */ - @Parameter(defaultValue = "false") + @Parameter(property = "antlr4.atn", defaultValue = "false") protected boolean atn; /** @@ -99,19 +99,19 @@ public class Antlr4Mojo extends AbstractMojo { /** * generate parse tree listener (default) */ - @Parameter(defaultValue = "true") + @Parameter(property = "antlr4.listener", defaultValue = "true") protected boolean listener; /** * generate parse tree visitor */ - @Parameter(defaultValue = "false") + @Parameter(property = "antlr4.visitor", defaultValue = "false") protected boolean visitor; /** * treat warnings as errors */ - @Parameter(defaultValue = "false") + @Parameter(property = "antlr4.treatWarningsAsErrors", defaultValue = "false") protected boolean treatWarningsAsErrors; /** @@ -123,7 +123,7 @@ public class Antlr4Mojo extends AbstractMojo { /** * use the ATN simulator for all predictions */ - @Parameter(defaultValue = "false") + @Parameter(property = "antlr4.forceATN", defaultValue = "false") protected boolean forceATN; /* --------------------------------------------------------------------