在国外的网站看到的解决办法,分享给大家!!!
BUILD FAILED
D:\__workspace_svn\apps\build.xml:18: The following error occurred while executing this line:
D:\__workspace_svn\apps\apps_build.xml:145: The following error occurred while executing this line:
D:\__workspace_svn\apps\apps_build.xml:100: The following error occurred while executing this line:
D:\__workspace_svn\apps\apps_build.xml:71: Problem: failed to create task or type if
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.
Solution:
Solution:
It is a compatibility issue.
1.
Right click on build.xml.
2.
Go to "Run As" --> 2 Ant Select Classpath tab check Ant Home version (Sometimes eclipse selects default ant version).
If the version listed is different, then change Ant Home Classpath to C:\XXXX\ant\X.X.X.
3.
Finally click on the Classpath tab --> Add External JARS..--> add ant-contrib.x.x.jar from C:\XXXX\ant\X.X.X\ant-contrib\ directory.
1.
Right click on build.xml.
2.
Go to "Run As" --> 2 Ant Select Classpath tab check Ant Home version (Sometimes eclipse selects default ant version).
If the version listed is different, then change Ant Home Classpath to C:\XXXX\ant\X.X.X.
3.
Finally click on the Classpath tab --> Add External JARS..--> add ant-contrib.x.x.jar from C:\XXXX\ant\X.X.X\ant-contrib\ directory.