ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim White <>
Subject Re: Ivy only work if called outside the build.file where the ivy ant tasks are!!!
Date Fri, 13 Jun 2008 16:45:20 GMT
_deco_ wrote:

> Something funny is happening with me. When I have a build file 'B' that calls
> another build file 'A' that uses ivy tasks, everything goes smoothly. But if
> try to use 'A' directly I get the following error: 
> /home/novaspy/eclipse-workspace/projectA/build.xml:23: Problem: failed to
> create task or type antlib:org.apache.ivy.ant:settings
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken place.
> This appears to be an antlib declaration. 
> Action: Check that the implementing library exists in one of:
>         -/home/deco/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib
>         -/home/deco/.ant/lib
>         -a directory added on the command line with the -lib argument
> If I call 'A' from another build file 'B', it works perfectly. I checked and
> the Ivy.jar is in the ant.lib directory

Ant disagrees.  I suspect if you "ls /home/deco/.ant/lib" that it isn't 
there.  I also suspect you've got something in 'B' that defines a 
classpath for for a taskdef or something like that.

Try one of the suggested fixes such as using the -lib argument and see 
what happens.

For more specific advice I'd need to see the complete A and B.


View raw message