antcontrib提示错误Could not load definitions from resource解决办法
使用Ant过程中,在build.xml 添加<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.
解决办法有2个:
1、AntHome中加入ant-contrib-1.0b3.jar 在Eclipse–>Windows–>Preferences–>Ant–>Runtime–>classpath–>加入ant-contrib-1.0b3.jar
2、在build.xml中引入antcontrib.properties
<taskdef resource=”net/sf/antcontrib/antcontrib.properties”>
<classpath>
<pathelement location=”/java/tools/apache-ant-1.6.5/lib/ant-contrib.jar”/>
</classpath>
</taskdef>
More info, please refer to
http://ant-contrib.sourceforge.net/
[转]about Ant net/sf/antcontrib/antcontrib.propertie
猜你喜欢
转载自mxy0521.iteye.com/blog/1727110
今日推荐
周排行