To work with Ivy to resolve dependencies, you need to use < ivy:configure/> in your build.xml file. This will load the Ivy settings from ivysettings.xml.
Artifacts are resolved using < ivy:retrieve/>.
For details please refer to the Ivy documentation for Ant Tasks.