我的新浪微博:http://weibo.com/u/1602714773 CSDN博客:http://blog.csdn.net/hunterno4

robotium测试工程导出build.xml文件

上一篇 / 下一篇  2013-04-25 22:39:05 / 个人分类:robotium

eclipse导出build.xml文件:

右击工程文件,选择Export,选择General——Ant Buildfiles,即可导出一份build.xml文件。

eclipse导出ant编译所需要的build.xml文件时报错了

弹框提示:"The build class path order of the source directories of project library is not correct. Exported Ant buildfile will not compile your sources correctly until you swap the order of these directories:gen<->src"

解决:如提示所说,将被测工程的gen与src对换位置

右击被测试工程,选择Build Path,在Order and Export,将gen和src对换位置,再用eclipse导出ant的build.xml文件就行了。

不然直接ant的话可能就会报错:Basedir E:\surfnews\surf_Robotium\${ExampleProject.location} does not exist


TAG: ant Ant eclipse Eclipse Robotium robotium

 

评分:0

我来说两句

Open Toolbar