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

cordova additionally quotes platform specific arguments when used programmatically

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
    • Environment:

      Cordova@6.0.0, OS X or *nix machine

      Description

      Some platform-specific arguments (such as --gradleArg) is additionally quoted, when options passed to cordova.raw API using old format. Though this is not a problem on Windows, because the command processor on handles such arguments correctly, on OS X this leads to unexpected failures.

      For example running

      cordova.raw.build({
          platforms: [android],
          options: ["--gradleArg=--no-daemon"]
      })
      

      causes gradle build failure with following message Task '"--no-daemon"' not found in root project 'android'.

        Attachments

          Activity

            People

            • Assignee:
              vladimir.kotikov Vladimir Kotikov
              Reporter:
              vladimir.kotikov Vladimir Kotikov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: