【发布时间】:2016-11-23 22:25:57
【问题描述】:
我在进行 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。
这里缺少什么?
【问题讨论】: