forked from jasder/antlr
Support specifying arbitrary command line arguments
This commit is contained in:
parent
f08b3ed9e5
commit
ec31c1bd68
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue