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

Bryan Higgins commented on CB-2975:
-----------------------------------

[~filmaj] Why not a hybrid approach?

1) Check targets listed under HOME/.cordova/blackberry10.json, starting with 
the one listed as default.

If none of those are connected:

2) Scan for devices attached by USB. For 99.9% of users this will be 
169.254.0.1, but it can be set to anything in the 169.254.x.x range.

If the user has not pre-configured a target, we need to query the device for 
PIN in order to generate the debug token. The device password is also needed. 
How should that get passed in? Via argument to the run command?

I'm willing to take this task on.
                
> Add a ./cordova/lib/list-devices project-level helper script to BlackBerry
> --------------------------------------------------------------------------
>
>                 Key: CB-2975
>                 URL: https://issues.apache.org/jira/browse/CB-2975
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: BlackBerry
>            Reporter: Filip Maj
>            Assignee: Lorin Beer
>             Fix For: 2.9.0
>
>
> Lists out attached/connected devices.
> The script should print out, at a minimum, one device ID per line. If a 
> description of the device is available, each line should be in the form ID 
> DESCRIPTION. Other tooling can then use the first space as a delimiter.
> If no devices are connected, the script should print out nothing and exit 
> with code 0.
> If it is not possible to implement this script on the platform, the script 
> script should print 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

Reply via email to