我在进行 ant build 时得到关注:
Build\build.xml:247: Problem: failed to create task or type
for
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.
build.xml 第 247 行是<for param="file">
已经定义<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
了,没用。然后我特别添加了以下内容,但它仍然无法正常工作。
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${env.ANT_HOME}/lib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
我在C:\Softwares\apache-ant-1.8.4\lib目录中有ant-contrib-1.0b3.jar 。这里缺少什么?