Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6415

BlackBerry10 was not looking for itself in the right place if you used a .cordova/config.json file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.5.0
    • Component/s: cordova-cli
    • Labels:
    • Environment:

      Windows 7, Native development environment for blackberry10 properly configured.

      Description

      Working on some tests, for a new node module for cordova, I've found a problem when I try to work with custom libraries, this problem only applies to Blackberry, it doesn't resolve correctly a uri path in a config.json file,

      My configuration in the project:
      .cordova/config.json ---->
      {
      "id": "org.apache.cordova",
      "name": "mobilespec",
      "lib": {
      "blackberry10":

      { "uri": "C:\\Users\\Administrator\\cordova-blackberry" }

      ,
      "wp8":

      { "uri": "C:\\Users\\Administrator\\cordova-coho\\cordova-wp8" }

      ,
      "windows8":

      { "uri": "C:\\Users\\Administrator\\cordova-coho\\cordova-windows" }

      }
      }

      The problem is that it never resolves the path, with the folder that contains blackberry10 library, which is inside of cordova-blackberry.

      When I try to add the full path to the project:
      "blackberry10":

      {"uri":"C:\\Users\\Administrator\\cordova-coho\\cordova-blackberry\\blackberry10"}

      It pass the requirements check, but when it produce an error at running the command to add the project at superspawn.js.

      What's happening here is, that it pass the requirements check, but when it try to use the library use is trying to use this path: C:\\Users\\Administrator
      cord
      ova-blackberry\\blackberry10\\blackberry10\\bin
      create

      So the usage path is obtained trying to look for 'blackberry10', under 'cordova-blackberry', and the requirements check requires the whole path: "blackberry10":

      {"uri":"C:\\Users\\Administrator\\cordova-coho\\cordova-blackberry\\blackberry10"}

      According to my trace, the requirements check it should resolve the path correctly, looking under 'cordova-blackberry'.
      I'll assign this to me, I have a simple solution for it when custom paths are used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                martin.c.glez.glez Martin Gonzalez
                Reporter:
                martin.c.glez.glez Martin Gonzalez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: