美文网首页
ant 使用foreach报错:failed to create

ant 使用foreach报错:failed to create

作者: else05 | 来源:发表于2016-10-16 17:30 被阅读201次

    报错信息

    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>
    
    参考

    相关文章

      网友评论

          本文标题:ant 使用foreach报错:failed to create

          本文链接:https://www.haomeiwen.com/subject/zdxayttx.html