createTask() method is throwing the following error with ant-1.8.2 while it
works perfectly with Ant 1.7.1.

import org.apache.tools.ant.taskdefs.Delete;
Delete delete = (Delete) myProject.createTask("Delete"); 


jar:file:/myant/ant-1.8.2/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.


I tried to remove all componentdef stuff from
org/apache/tools/ant/antlib.xml and then it started working again. 

Kindly let me know if there is a proper solution to this. And why this is
not working for me.
-- 
View this message in context: 
http://ant.1045680.n5.nabble.com/project-createTask-not-working-with-ant-1-8-2-tp3385716p3385716.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to