在使用过程中,在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>