On Tue, Mar 11, 2008 at 8:17 AM, Russel Winder <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-03-10 at 19:45 +0100, Xavier Hanin wrote: > > On Mon, Mar 10, 2008 at 7:00 PM, Russel Winder > > <[EMAIL PROTECTED]> wrote: > > > Is it standard for Ivy to issue the message: > > > > > > "Trying to override old definition of task buildnumber" > > > > > > or am I missing something that I shouldn't be. > > No, it isn't standard. How do you load the tasks in Ant? Do you you > > use a taskdef, the antlib with ivy.jar in your ant lib directory? > > That was the answer I was hoping to hear :-) > > Context: This is the implementation of the Ivy tool for the Gant build > framework, which is a Groovy system (http://gant.codehaus.org). Hans > has mentioned his Gradle framework on this list previously I think. > Whereas Gradle is model based and has lots of sophisticated dependency > management stuff, Gant is just trying to be a way of scripting Ant tasks > to use Ant but without any XML. > > The code that causes the output is indeed a task definition picking up > the Ivy jar from the Groovy lib directory -- installing Gant installs > the Ivy and Maven Ant tasks jars into the Groovy installation. > > 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 ) > > Hopefully the lack of XML doesn't get in t he way of understanding the > above :-) 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.
Xavier > > > > Thanks. > > -- > 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/
