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

AntInternals (last edited 2011-06-13 10:12:18 by antoine)