On that Ant exception you need two instructions:
xmlns:ivy="anUri"
<taskdef resource="..." uri="anUri" classpath="..."/>
For Ivy:
<project xmlns:ivy="antlib:org.apache.ivy.ant">
<taskdef resource="org/apache/ivy/ant/antlib.xml"
uri="antlib:org.apache.ivy.ant"
classpath="-path-to-ivy.jar-"/>
The xmlns: is valid on each element (<project>, <target>, tasks...) and works
then
for that element and all nested elements:
<project>
<ivy:task/> --> exception
<ivy:task xmlns:ivy="..."/> --> ok
<target xmlns:ivy="...">
<ivy:task/> --> ok
Jan
>-----Ursprüngliche Nachricht-----
>Von: Thomas Polliard [mailto:[email protected]]
>Gesendet: Mittwoch, 18. November 2009 03:26
>An: [email protected]
>Betreff: Your examples fail :(
>
>Copied the build.xml file just as requested and ran:
>
>[test]
>polli...@helium $ /usr/bin/ant -version
>Apache Ant version 1.7.1 compiled on July 16 2009
>[test]
>polli...@helium $ ant
>Buildfile: build.xml
>
>BUILD FAILED
>/Users/polliard/test/build.xml:90: The prefix "ivy" for element
>"ivy:cachepath" is not bound.
>
>Total time: 0 seconds
>
>Oh well...
>Thomas
>
>