首页 > 其他 > 详细

ant打包遇到的问题

时间:2019-09-29 14:54:11      阅读:62      评论:0      收藏:0      [点我收藏+]
\build\build.xml:350: 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>

 

看 图文教程

参考
Troubleshooting “failed to create task or type foreach” when using <foreach>
Ant-Contrib Tasks

ant打包遇到的问题

原文:https://www.cnblogs.com/nxzblogs/p/11605063.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!