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

cordova.raw.emulate fires a cordova.raw.prepare with incorrect arguments

    XMLWordPrintableJSON

Details

    Description

      All cordova.raw command now need to be called with arguments like this ticket expains: https://issues.apache.org/jira/browse/CB-9987.

      Unfortunately the raw emulate command executes the raw prepare with the wrong structure of arguments, with the side effect that if you want to emulate only iOS, the other configured projects will also be add/checked/prepared.

      emulate.js calls it like this:
      return require('./cordova').raw.prepare(options.platforms);
      https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/emulate.js line 36

      But the argument should be an object with a key named platforms. like so:
      return require('./cordova').raw.prepare(

      {platforms: options.platforms}

      );

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            martias0 Manuel Martiarena
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: