码迷,mamicode.com
首页 > 其他好文 > 详细

Ant Problem: failed to create task or type foreach 问题

时间:2017-04-30 11:01:26      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:文件   没有   使用   classpath   res   class   html   path   UI   

用eclipse导出android时总是会出现有类没有导出的现象,感觉非常麻烦,就用ant些了脚本。在eclipse中运行脚本没问题。可是在命令行下运行会出现

Problem: failed to create task or type foreach问题。出问题的脚本是

	<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${path.build}/ant-contrib.jar"/>

是使用ant的一个扩展包的时候的问题。我在这里明明是写了jar包的文件夹了。但是还是说找不到。

后来发现吧classpath写绝对路径就能够了,不明确为什么?

	<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="/home/lib/ant-contrib.jar"/>

这样在命令行运行就不会报错了!

Ant Problem: failed to create task or type foreach 问题

标签:文件   没有   使用   classpath   res   class   html   path   UI   

原文地址:http://www.cnblogs.com/yutingliuyl/p/6788813.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!