机器人自动化的Maven [英] android maven automation
问题描述
使用maven的Android的Eclipse插件,是否有可能有一个Maven配置了自动启动在调试模式下的Android项目(应用程序),从而使Eclipse将自动连接到该进程?
Using the maven android eclipse plugin, is it possible to have a maven configuration that automatically launches the android project (the app) in debug mode, so that eclipse automatically attaches to that process ?
感谢。
推荐答案
目前还没有功能启动/运行Maven的插件的Android应用程序。有一个功能要求来做到这一点。
There is currently no feature to launch/run the app from the Maven Android Plugin. There is a feature request to do just that
的http:// code.google.com/p/maven-android-plugin/issues/detail?id=102
,这将是很容易做到的。我还没有做到这一点还的机会。随意来实现它作为一个独立的魔力,并提交pull请求。我肯定可以把它在3.0版本。
and it would be fairly easy to do. I have not had the chance to do it yet. Feel free to implement it as a standalone mojo and submit a pull request. I can definitely pull it in for the 3.0 release.
有一件事是虽然发生是当你运行仪器测试的apk将被部署以及测试并在测试code一个新的设置允许等待调试器连接..
One thing that is happening though is when you run the instrumentation tests the apk will be deployed as well as the test and a new setting in the testing code allows for waiting for a debugger to connect..
更新:
现在有将运行您的主要活动设置为在AndroidManifest发射并运行在所有连接的设备和仿真应用运行的目标。
There is now a run goal that will run your main activity set as launcher in your AndroidManifest and run the application on all connected devices and emulators.
这篇关于机器人自动化的Maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!