Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0
-
Fix Version/s: None
-
Component/s: cli, jelly/ant integration
-
Labels:None
-
Number of attachments :
Description
I'm using the <ant:input> task in one of my plugins. Unfortunately, there is no way to specify the InputHandler implementation to use (this is more a design flaw in Ant than in Maven).
There are several ways to accomplish this:
1. Do something more globalish to allow ant command line options in maven (a bit ugly but would solve this problem and maybe others as Ant adds more command line switches)
2. Provide some way to get the ant Project object so that the InputHandler may be set there using Project.setInputHandler().
3. Define a maven jelly tag like <maven:input> or something that would allow a more flexible and correctly designed mechanism for capturing user input during the build.
Thanks,
L
heh, just noticed the reporter said you can do it on the ant project.
$
{pom.getAntProject().setInputHandler(...)}should work