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 / declarations have taken place.

  • 先看 官方配置

   
// 这里改成 ant-contrib 对应的jar包路径
     
   

  • 看 图文教程
参考
  • Troubleshooting “failed to create task or type foreach” when using
  • Ant-Contrib Tasks

你可能感兴趣的:(ant 使用foreach报错:failed to create task or type foreach 解决)