在使用过程中,在build.xml 添加
时候执行 for task时候总是提示错误
改用以下方式引入:
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
时候执行 for task时候总是提示错误
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
改用以下方式引入:
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="/home/webdev/tools/apache-ant-1.6.5/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<classpath>
<pathelement location="/home/webdev/tools/apache-ant-1.6.5/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
本文介绍了解决在Ant构建文件中加载自定义任务时遇到的问题。通过调整配置,使用正确的资源文件和路径设置,成功避免了加载错误。
1225

被折叠的 条评论
为什么被折叠?



