i have this ant build.xml file with 3 targets in it:
target1, target2 and target3.
If the user simply runs ant and not an explicit ant target1 or something like that, i want to prompt the user asking which target he would like to call.
Remember, the user should only be prompted for this only if he doesnt explicitly call a target while running ant
you may use the
inputtask provided by ant and make it your default target.Use the value of this property to decide which target to execute.
From the ant documentation: