I just upgraded from Ant 1.7 to 1.8 and my build files run fine from the 
command line.  However, when using Eclipse (3.4.1 - Ganymede), my build files 
don't run because of this error:

The following error occurred while executing this line: 
jar:file:/C:/Projects/fetchsoftware/runtime/thirdparty/apache-ant-1.8.0/
 lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create 
task or type componentdef 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.

The same build files worked fine when using Ant 1.7.  To get Eclipse to use the 
Ant version, I use the "Set Ant Home..."button in Eclipse preferences.

Anyone know what is going on or how to fix it? Ant is clearly finding the 1.8 
jar and the line it complains about is provided by Ant.  Furthermore, the class 
referred to in the componentdef ("org.apache.tools.ant.taskdefs.condition.And") 
exists in ant.jar.

Thank you,
Gary

Reply via email to