mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
CB-8255 Fix cordova/build --gradleVar=--foo=bar
stripping off =bar
This commit is contained in:
parent
9a952f1004
commit
af60f71ea3
4
bin/templates/cordova/lib/build.js
vendored
4
bin/templates/cordova/lib/build.js
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user