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

cordova additionally quotes platform specific arguments when used programmatically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.0
    • None
    • cordova-lib
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: