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

ASF GitHub Bot commented on CB-6326:
------------------------------------

Github user martincgg commented on the pull request:

    https://github.com/apache/cordova-blackberry/pull/151#issuecomment-38320327
  
    Well, the reason is that I'm adding support to blackberry for 'cordova 
info' command, which get information from the environment in order to report 
issues, or ask for help.
    I know that you have chose 'simulator', but when I deploy with cli using 
cordova emulate blackberry, it stores 'emulator' in the blackberry10.json file:
    {
        "targets": {
            "All Touch [1280x768]-ffffa2e6": {
                "ip": "192.168.241.131",
                "pin": "ffffa2e6",
                "type": "emulator"
            }
        }
    }
    
    I'm using the target-utils.js to get that information to show it to the 
user.


> [cordova-blackberry] target-utils.js outdated
> ---------------------------------------------
>
>                 Key: CB-6326
>                 URL: https://issues.apache.org/jira/browse/CB-6326
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry
>    Affects Versions: 3.4.0
>            Reporter: Martin Gonzalez
>            Assignee: Martin Gonzalez
>            Priority: Blocker
>              Labels: blackberry-utils, blackberry10, cordova-cli, cordova-info
>             Fix For: 3.5.0
>
>
> The file target-utils.js, located under cordova/lib, is used to get 
> information a about the devices, emulators, even if those are registered in 
> the blackberry10.json file.
> When a cordova application is created, build and then deployed into the 
> blackberry emulator or device, all records stays at the blackberry10.json 
> file, that information include description, ip, pin, and type. When emulate, 
> it sets 'emulator', target-utils.js it looks for this file and check the 
> content, and it's looking for the word 'simulator', so it won't work anymore 
> if this word is not chaged, and replaced for 'emulator'.
> Besides, from this change it depends this issue: 
> https://issues.apache.org/jira/browse/CB-6121
> The cordova info command it will use the target-utils.js, to add support for 
> blackberry10.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to