ant 使用foreach报错:failed to create task or type foreach 解决

报错信息

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>
参考
    原文作者:else05
    原文地址: https://www.jianshu.com/p/a499e377372b
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞