ant 使用foreach报错:failed to create

2016-10-16  本文已影响201人  else05

报错信息

D:\Projects\CSS\HIS\Build\build.xml:23: Problem: failed to create task or type foreach 
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.

<taskdef resource="net/sf/antcontrib/antlib.xml">
   <classpath>
// 这里改成 ant-contrib 对应的jar包路径
     <pathelement location="/usr/share/java/lib/ant-contrib-version.jar"/>
   </classpath>
</taskdef>
参考
上一篇 下一篇

猜你喜欢

热点阅读