cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [5/8] android commit: CB-8255 Fix `cordova/build --gradleVar=--foo=bar` stripping off `=bar`
Date Tue, 20 Jan 2015 03:04:26 GMT
CB-8255 Fix `cordova/build --gradleVar=--foo=bar` stripping off `=bar`


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/af60f71e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/af60f71e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/af60f71e

Branch: refs/heads/4.0.x
Commit: af60f71ea3bdd8f0f4d24d5fdead9c36c5046d71
Parents: 9a952f1
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Jan 19 21:54:29 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Jan 19 21:54:29 2015 -0500

----------------------------------------------------------------------
 bin/templates/cordova/lib/build.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/af60f71e/bin/templates/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js
index ba0cab8..f2d60ae 100644
--- a/bin/templates/cordova/lib/build.js
+++ b/bin/templates/cordova/lib/build.js
@@ -321,8 +321,8 @@ function parseOpts(options, resolvedTarget) {
     for (var i=0; options && (i < options.length); ++i) {
         if (/^--/.exec(options[i])) {
             var keyValue = options[i].substring(2).split('=');
-            var flagName = keyValue[0];
-            var flagValue = keyValue[1];
+            var flagName = keyValue.shift();
+            var flagValue = keyValue.join('=');
             if (multiValueArgs[flagName] && !flagValue) {
                 flagValue = options[i + 1];
                 ++i;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message