mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
CB-8147 Have corodva/build warn about unrecognized flags rather than fail
Close #127
This commit is contained in:
parent
aa2d3962bf
commit
3aca14d530
9
bin/templates/cordova/lib/build.js
vendored
9
bin/templates/cordova/lib/build.js
vendored
@ -339,14 +339,19 @@ function parseOpts(options, resolvedTarget) {
|
||||
case 'gradle':
|
||||
ret.buildMethod = option;
|
||||
break;
|
||||
case 'device':
|
||||
case 'emulator':
|
||||
// Don't need to do anything special to when building for device vs emulator.
|
||||
// iOS uses this flag to switch on architecture.
|
||||
break;
|
||||
case 'nobuild' :
|
||||
ret.buildMethod = 'none';
|
||||
break;
|
||||
default :
|
||||
return Q.reject('Build option \'' + options[i] + '\' not recognized.');
|
||||
console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
|
||||
}
|
||||
} else {
|
||||
return Q.reject('Build option \'' + options[i] + '\' not recognized.');
|
||||
console.warn('Build option \'' + options[i] + '\' not recognized (ignoring).';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user