GunaSekharM / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Multiple-device operations should be parallelized #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a performance improvement feature.

What steps will reproduce the problem?
1. connect multiple devices and/or emulators
2. run "mvn android:deploy"

What is the expected output?
Operations for each connected device should happen parallelly, not sequencially

What do you see instead?
the opposite, which is very slow when there are many devices connected, 
specially emulators

What version of maven-android-plugin are you using?
3.4.0

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.4 (r1232337; 2012-01-17 06:44:56-0200)
Maven home: /usr/local/Cellar/maven/3.0.4/libexec
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"

Please provide any additional information below.
On bash, it could be achieved with the following commands:
$ adb -s 1 install my_app.apk &
$ adb -s 2 install my_app.apk &
$ wait

or the equivalent one-liner:
$ adb -s 1 install my_app.apk & adb -s 2 install my_app.apk & wait

`wait`'s return is always 0 though, so it wouldn't report failures.

Original issue reported on code.google.com by jonasfa@gmail.com on 5 Dec 2012 at 8:59

GoogleCodeExporter commented 9 years ago
The ddmlib library does not easily allow this from what I can tell. Feel free 
to see if you can implement it using the library as with the current code. 
Problem is that all device interaction is affected if you change this so it 
might be hard to do... 

Original comment by mosa...@gmail.com on 7 Dec 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Done succesfully: https://github.com/jayway/maven-android-plugin/pull/159
Tested with 2 emulators + 1 device simultaneously.

Original comment by jonasfa@gmail.com on 7 Dec 2012 at 11:31

GoogleCodeExporter commented 9 years ago
This is implemented and available in 3.5.1

Original comment by mosa...@gmail.com on 23 Feb 2013 at 7:00