Ant builds support a property named adb.device.arg, 를 이용 한다.
For example:
root@ubuntu:~/Android_Application_source/testingProjectPackage/NotePad# ant -Dadb.device.arg="-s 0149A97F16021014" emma debug install
Buildfile: /root/Android_Application_source/testingProjectPackage/NotePad/build.xml
Luckily, adb supports another way to specify the device: via the ANDROID_SERIAL environment variable. This variable takes the same serial values as the -s flag, and being part of the environment is independent of how you end up running adb. To repeat my previous example, I just need to set the variable to the serial for my emulator:
jsankey@caligula:~/work/my-app$ export ANDROID_SERIAL=emulator-5554
jsankey@caligula:~/work/my-app$ ant install
Buildfile: build.xml
[setup] Android SDK Tools Revision 6
[setup] Project Target: Android 2.2
...
install:
[echo] Installing /home/jsankey/work/my-app/build/MyAppActivity-debug.apk onto default emulator or device...
[exec] 277 KB/s (14446 bytes in 0.050s)
[exec] pkg: /data/local/tmp/MyAppActivity-debug.apk
[exec] Success
BUILD SUCCESSFUL
Total time: 4 seconds
'Computer Science > EMMA' 카테고리의 다른 글
WordPress에 대한 codecoverage 측정 방법 연구 (0) | 2013.10.31 |
---|---|
androidmonkey- monkey의 LOC 측정방법 EMMA를 이용한. (0) | 2013.10.15 |
EMMA를 실행 하는 App에 대해서 사용 하는 방법. (1) | 2013.08.25 |
EMMA 설정 방법 (0) | 2013.08.23 |