Support specifying arbitrary command line arguments

This commit is contained in:
Sam Harwell 2012-12-01 16:03:53 -06:00
parent f08b3ed9e5
commit ec31c1bd68
1 changed files with 10 additions and 0 deletions

View File

@ -134,6 +134,12 @@ public class Antlr4Mojo extends AbstractMojo {
@Parameter
protected Map<String, String> options;
/**
* A list of additional command line arguments to pass to the ANTLR tool.
*/
@Parameter
protected List<String> arguments;
/* --------------------------------------------------------------------
* The following are Maven specific parameters, rather than specificlly
* options that the ANTLR tool can use.
@ -357,6 +363,10 @@ public class Antlr4Mojo extends AbstractMojo {
}
}
if (arguments != null) {
args.addAll(arguments);
}
return args;
}