You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Benn Mapes (JIRA)" <ji...@apache.org> on 2013/04/08 23:50:15 UTC

[jira] [Resolved] (CB-2941) Tweak ./cordova/run project-level script for WP8

     [ https://issues.apache.org/jira/browse/CB-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benn Mapes resolved CB-2941.
----------------------------

    Resolution: Fixed

https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;a=commit;h=1443cc11cf776a26937824730c155abf4be73db0

list-devices does not know if the device it returns is connected or not so the default is to launch on emulator instead of device. To launch on device, make sure device is connected, then call list-devices and run with the target id returned.
                
> Tweak ./cordova/run project-level script for WP8
> ------------------------------------------------
>
>                 Key: CB-2941
>                 URL: https://issues.apache.org/jira/browse/CB-2941
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: WP8
>            Reporter: Filip Maj
>            Assignee: Benn Mapes
>             Fix For: 2.7.0
>
>
> {code}
> run [--target=<id>]
> {code}
> Deploys a build of the app to an available device or emulator.
> Implicitly calls {{build}} first (see CB-2929).
> If {{--target}} is specified, attempts to deploy the app to the device or emulator identified by <id>. If the attempt fails, the script will error out with code 2 and an appropriate error message. If no {{--target}} is specified, follows this multi-device flow:
>  
>  # Are there any devices connected and available (should use the {{list-devices}} script TODO: [issue ref to come] to determine this)? If so, deploy to the first available one, if not continue.
>  # Are there any actual emulators available, i.e. started/running? (use {{list-started-emulators}} script TODO: [issue ref to come] to determine this). If so, target the first one. If no, continue.
>  # Are there any emulator images available to start? (use {{list-emulator-images}} script TODO: [issue ref to come] to determine this). If so, call {{start-emulator <id>}} TODO: [issue ref to come] of the first available image, wait for it to become ready, then deploy to it.
>  # If you get to this step, error out with a "no devices or emulators available" and exit with code 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira