You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/06/20 03:15:20 UTC

[jira] [Commented] (CB-2991) Add a ./cordova/lib/install-device project-level helper script to BlackBerry

    [ https://issues.apache.org/jira/browse/CB-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688731#comment-13688731 ] 

Filip Maj commented on CB-2991:
-------------------------------

I'm pretty sure this functionality already exists ([the execNativeDeploy method|https://github.com/apache/cordova-blackberry/blob/master/blackberry10/bin/templates/project/cordova/lib/run#L79]) and just needs to be refactored into a helper {{install-device}} script.

Then the parent {{run}} script can simply invoke the {{install-device}} one.

The benefit to exposing those helper-type of scripts is that tools consuming cordova such as medic can re-use some of that specific sub-functionality.
                
> Add a ./cordova/lib/install-device project-level helper script to BlackBerry
> ----------------------------------------------------------------------------
>
>                 Key: CB-2991
>                 URL: https://issues.apache.org/jira/browse/CB-2991
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: BlackBerry
>            Reporter: Filip Maj
>            Assignee: Lorin Beer
>             Fix For: 2.9.0
>
>
> {code}
> install-device [--target=id]
> {code}
> Installs a build of the app to an available device.
> If {{--target}} is specified, attempts to install the app to the device identified by {{id}}. If the attempt fails, the script will error out with an appropriate error message and exit with code 2.
> If no {{--target}} is specified, follows this multi-device flow:
>  # Are there any devices available, i.e. connected? (use {{list-devices}} [CB-2975] to determine this). If so, target the first one, otherwise continue.
>  # Print an error message and exit with code 2.
> If the application is not compiled/built yet, the script will error out with an appropriate error message and exit with code 2.
> If this functionality is not implementable, print out an appropriate error message and exit with code 1.

--
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