的FlexUnit Ant任务是挂 [英] FlexUnit ANT task is hanging

查看:140
本文介绍了的FlexUnit Ant任务是挂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Ant任务来构建服务器上运行的FlexUnit。当我运行在Flash Builder中的Flex单元测试(4)它工作正常。但是从ANT运行时,它会打开默认播放器(火狐在我的情况),运行FU成功,但从未返回到命令行。最终,我得到一个 java.util.concurrent.ExecutionException:套接字超时等待的FlexUnit报告的异常,因为FU永不再来。

这可能是什么问题?

 <的FlexUnit SWF =$ {} APP_TEST_FILE_SWF
toDir =$ {} OUTPUT_DIR /测试
命令=C:\\ Program Files文件(x86)的\\的Adobe \\的Adobe Flash Builder 4的\\播放器\\ WIN \\ 10.1 \\ FlashPlayerDebugger.exe
haltonfailure =真详细=真
localTrusted =真/> < /目标与GT;


解决方案

另外过这个问题来了。需要很长的时间来解决它。我的解决方案
确保你相关的SWF文件与独立版本的Adobe Flash。
你可以从 http://www.adobe.com/support/flashplayer下载的Flash Player 11.5投影机/downloads.html

I'm using the ANT task to run FlexUnit on a build server. When I run the Flex Unit Tests from the Flash Builder (4) it works fine. But when running from ANT it opens the default player (FireFox in my case), runs the FU successfully but never returns to the command line. Eventually I get a "java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report" exception because the FU never returns.

What could be the problem?

<flexunit swf="${APP_TEST_FILE_SWF}" 
toDir="${OUTPUT_DIR}/test" 
command="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\player\win\10.1\FlashPlayerDebugger.exe" 
haltonfailure="true" verbose="true" 
localTrusted="true"/> </target>

解决方案

Also came across this problem. Take a long time to fix it. My solution is make sure you’ve associated .swf files with your standalone flashplayer. You could download Flash Player 11.5 Projector from http://www.adobe.com/support/flashplayer/downloads.html

这篇关于的FlexUnit Ant任务是挂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆