You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2016/03/08 07:44:53 UTC
cordova-lib git commit: CB-10673 add plugin --force option. This
closes #404
Repository: cordova-lib
Updated Branches:
refs/heads/master 45a235fa7 -> e1bde1afa
CB-10673 add plugin --force option. This closes #404
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/e1bde1af
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/e1bde1af
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/e1bde1af
Branch: refs/heads/master
Commit: e1bde1afa0f22b783d3cecc5f7d14c39ab17528b
Parents: 45a235f
Author: Byoungro So <by...@intel.com>
Authored: Tue Mar 1 23:23:19 2016 -0800
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Mon Mar 7 22:43:42 2016 -0800
----------------------------------------------------------------------
cordova-lib/src/cordova/platform.js | 1 +
cordova-lib/src/cordova/plugin.js | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/e1bde1af/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index 1b745be..9b1157e 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -654,6 +654,7 @@ function installPluginsForNewPlatform(platform, projectRoot, opts) {
// specify the option below in both places
usePlatformWww: true,
is_top_level: pluginMetadata.is_top_level
+ force: opts.force
};
var variables = pluginMetadata && pluginMetadata.variables;
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/e1bde1af/cordova-lib/src/cordova/plugin.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/plugin.js b/cordova-lib/src/cordova/plugin.js
index c5ead29..a5398a0 100644
--- a/cordova-lib/src/cordova/plugin.js
+++ b/cordova-lib/src/cordova/plugin.js
@@ -176,7 +176,8 @@ module.exports = function plugin(command, targets, opts) {
// and files from 'platform_www' merged into 'www'. Thus we need to persist these
// files platform_www directory, so they'll be applied to www on each prepare.
usePlatformWww: true,
- nohooks: opts.nohooks
+ nohooks: opts.nohooks,
+ force: opts.force
};
events.emit('verbose', 'Calling plugman.install on plugin "' + pluginInfo.dir + '" for platform "' + platform);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org