ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Your examples fail :(
Date Wed, 18 Nov 2009 07:35:36 GMT
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:thomas@polliard.com] 
>Gesendet: Mittwoch, 18. November 2009 03:26
>An: ivy-user@ant.apache.org
>Betreff: Your examples fail :(
>
>Copied the build.xml file just as requested and ran:
>
>[test]
>polliard@helium $ /usr/bin/ant -version
>Apache Ant version 1.7.1 compiled on July 16 2009
>[test]
>polliard@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
>
>

Mime
View raw message