Ant has quite a complex structure, much of which is there for historical reasons.
Here is a description of the process Ant goes through when setting up tasks to be run:
Task Configuration in Ant
Powered by a free Atlassian Confluence Open Source Project License granted to Apache Software Foundation. Evaluate Confluence today.