public interface ArgumentProcessor
Arguments supported by third party code should not conflict with Ant core ones. It is then recommended to chose specific 'enough' argument name, avoiding for instance one letter arguments. By the way, if there any conflict, Ant will take precedence.
Modifier and Type | Method and Description |
---|---|
boolean |
handleArg(List<String> args)
If some arguments matched with
readArguments(String[], int) ,
this method is called after all arguments were parsed. |
boolean |
handleArg(Project project,
List<String> arg)
Handle the arguments with
readArguments(String[], int) , just
after the project being configured. |
void |
prepareConfigure(Project project,
List<String> args)
If some arguments matched with
readArguments(String[], int) ,
this method is called just before the project being configured |
void |
printUsage(PrintStream writer)
Print the usage of the supported arguments
|
int |
readArguments(String[] args,
int pos)
Read the arguments from the command line at the specified position
|
boolean handleArg(List<String> args)
readArguments(String[], int)
,
this method is called after all arguments were parsed. Returns
true
if Ant should stop there, ie the build file not parsed
and the project should not be executed.boolean handleArg(Project project, List<String> arg)
readArguments(String[], int)
, just
after the project being configured. Returns true
if Ant
should stop there, ie the build file not parsed and the project should
not be executed.void prepareConfigure(Project project, List<String> args)
readArguments(String[], int)
,
this method is called just before the project being configuredvoid printUsage(PrintStream writer)
Main.printUsage()
int readArguments(String[] args, int pos)
If the argument is not supported, returns -1. Else, the position of the first argument not supported.