On Tue, Mar 11, 2008 at 10:48 AM, Russel Winder
<[EMAIL PROTECTED]> wrote:
>
> On Tue, 2008-03-11 at 08:51 +0100, Xavier Hanin wrote:
>
> > > binding.Ant.path ( id : classpathRef ) { binding.Ant.fileset ( dir :
> > > System.properties.'groovy.home' + System.properties.'file.separator' +
> > > 'lib' , includes : 'ivy*.jar' ) }
> > > binding.Ant.taskdef ( resource : 'org/apache/ivy/ant/antlib.xml' ,
> > > classpathref : classpathRef )
>
>
> > It's difficult for me to help here... I think the problem is more
> > related to the usage of gant and how antlibs are loaded than to Ivy.
> > Maybe you could get more help from Gant community, or from Ant users
> > list.
>
> It turns out to be something very simple, the taskdef is not specifying
> a URI to give a namespace to the Ivy material. Using:
>
> binding.Ant.taskdef ( resource : 'org/apache/ivy/ant/antlib.xml' , uri :
> 'antlib:org.apache.ivy.ant' , classpathref : classpathRef )
>
> and then calling Ivy methods using the namespace removes the spurious
> message.
>
> So not a Gant or Ant problem per se more a problem that the Ivy Ant task
> has to be told explicitly what the Ivy Ant task namespace is. I would
> have thought this should not be necessary, but maybe I am missing
> something?
According to Ant documentation I think it's usual to have to give the
URI when calling taskdef:
http://ant.apache.org/manual/CoreTypes/antlib.html
(see Load antlib from inside of the buildfile)
But maybe I'm missing something?
Xavier
>
> --
>
>
> Russel.
> ====================================================
> Dr Russel Winder Partner
>
> Concertant LLP t: +44 20 7193 9203
> 41 Buckmaster Road, f: +44 8700 516 084
> London SW11 1EN, UK. m: +44 7770 465 077
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/