I am using Ant 1.8.2. From my build.xml file, how do I know which targets were used on the command line when I called Ant?
Thanks - Dave
Use the ant.project.invoked-targets property:
ant.project.invoked-targets
<echo message="Targets: ${ant.project.invoked-targets}"/>
This is new since ant 1.8, I think. A few more Ant built-in properties .