@@ -56,10 +56,10 @@ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
5656 * Parses ANTLR grammar files {@code *.g} and transforms them into Java source
5757 * files.
5858 *
59- * @ goal antlr
60- * @ phase generate-sources
61- * @ requiresDependencyResolution compile
62- * @ requiresProject true
59+ * goal antlr
60+ * phase generate-sources
61+ * requiresDependencyResolution compile
62+ * requiresProject true
6363 *
6464 * @author <a href="mailto:jimi@temporal-wave.com">Jim Idle</a>
6565 */
@@ -74,52 +74,52 @@ public class Antlr3Mojo
7474 * it will report various statistics about the parser, such as information
7575 * on cyclic DFAs, which rules may use backtracking, and so on.
7676 *
77- * @parameter default-value="false"
77+ * default-value="false"
7878 */
7979 protected boolean report ;
8080 /**
8181 * If set to true, then the ANTLR tool will print a version of the input
8282 * grammar(s) which are stripped of any embedded actions.
8383 *
84- * @parameter default-value="false"
84+ * default-value="false"
8585 */
8686 protected boolean printGrammar ;
8787 /**
8888 * If set to true, then the code generated by the ANTLR code generator will
8989 * be set to debug mode. This means that when run, the code will 'hang' and
9090 * wait for a debug connection on a TCP port (49100 by default).
9191 *
92- * @parameter default-value="false"
92+ * default-value="false"
9393 */
9494 protected boolean debug ;
9595 /**
9696 * If set to true, then the generated parser will compute and report profile
9797 * information at runtime.
9898 *
99- * @parameter default-value="false"
99+ * default-value="false"
100100 */
101101 protected boolean profile ;
102102 /**
103103 * If set to true, then the ANTLR tool will generate a description of the
104104 * NFA for each rule in <a href="http://www.graphviz.org">Dot format</a>
105105 *
106- * @parameter default-value="false"
106+ * default-value="false"
107107 */
108108 protected boolean nfa ;
109109 /**
110110 * If set to true, then the ANTLR tool will generate a description of the
111111 * DFA for each decision in the grammar in
112112 * <a href="http://www.graphviz.org">Dot format</a>.
113113 *
114- * @parameter default-value="false"
114+ * default-value="false"
115115 */
116116 protected boolean dfa ;
117117 /**
118118 * If set to true, the generated parser code will log rule entry and exit
119119 * points to stdout ({@link System#out} for the Java target) as an aid to
120120 * debugging.
121121 *
122- * @parameter default-value="false"
122+ * default-value="false"
123123 */
124124 protected boolean trace ;
125125 /**
@@ -128,23 +128,23 @@ public class Antlr3Mojo
128128 * ANTLR supports the built-in formats {@code antlr}, {@code gnu} and
129129 * {@code vs2005}.
130130 *
131- * @parameter default-value="antlr"
131+ * default-value="antlr"
132132 */
133133 protected String messageFormat ;
134134 /**
135135 * If set to true, then ANTLR will report verbose messages during the code
136136 * generation process. This includes the names of files, the version of
137137 * ANTLR, and more.
138138 *
139- * @parameter default-value="true"
139+ * default-value="true"
140140 */
141141 protected boolean verbose ;
142142
143143 /**
144144 * The maximum number of alternatives allowed in an inline switch statement.
145145 * Beyond this, ANTLR will not generate a switch statement for the DFA.
146146 *
147- * @parameter default-value="300"
147+ * default-value="300"
148148 */
149149 private int maxSwitchCaseLabels ;
150150
@@ -153,7 +153,7 @@ public class Antlr3Mojo
153153 * statement. For decisions with fewer alternatives, an if/else if/else
154154 * statement will be used instead.
155155 *
156- * @parameter default-value="3"
156+ * default-value="3"
157157 */
158158 private int minSwitchAlts ;
159159
@@ -171,30 +171,26 @@ public class Antlr3Mojo
171171 * A set of Ant-like inclusion patterns used to select files from the source
172172 * directory for processing. By default, the pattern <code>**/*.g</code>
173173 * is used to select grammar files.</p>
174- *
175- * @parameter
176174 */
177175 protected Set <String > includes = new HashSet <String >();
178176 /**
179177 * A set of Ant-like exclusion patterns used to prevent certain files from
180178 * being processed. By default, this set is empty such that no files are
181179 * excluded.
182- *
183- * @parameter
184180 */
185181 protected Set <String > excludes = new HashSet <String >();
186182 /**
187183 * The current Maven project.
188184 *
189- * @parameter expression="${project}"
190- * @ required
191- * @ readonly
185+ * expression="${project}"
186+ * required
187+ * readonly
192188 */
193189 protected MavenProject project ;
194190 /**
195191 * The directory where the ANTLR grammar files ({@code *.g}) are located.
196192 *
197- * @parameter default-value="${basedir}/src/main/antlr3"
193+ * default-value="${basedir}/src/main/antlr3"
198194 */
199195 private File sourceDirectory ;
200196 /**
@@ -203,7 +199,7 @@ public class Antlr3Mojo
203199 * such that the generated files will participate in later build phases like
204200 * compiling and packaging.
205201 *
206- * @parameter default-value="${project.build.directory}/generated-sources/antlr3"
202+ * default-value="${project.build.directory}/generated-sources/antlr3"
207203 * @required
208204 */
209205 private File outputDirectory ;
@@ -212,7 +208,7 @@ public class Antlr3Mojo
212208 * grammars. Note that ANTLR will not try to process grammars that it finds
213209 * to be imported into other grammars (in the same processing session).
214210 *
215- * @parameter default-value="${basedir}/src/main/antlr3/imports"
211+ * default-value="${basedir}/src/main/antlr3/imports"
216212 */
217213 private File libDirectory ;
218214
@@ -398,14 +394,6 @@ public void execute()
398394
399395 }
400396
401-
402- /**
403- *
404- * @param sourceDirectory
405- * @param outputDirectory
406- * @throws IOException
407- * @throws InclusionScanException
408- */
409397 private void processGrammarFiles (File sourceDirectory , File outputDirectory )
410398 throws IOException , InclusionScanException {
411399 // Which files under the source set should we be looking for as grammar files
0 commit comments