Repository: cordova-android Updated Branches: refs/heads/master 9b8558dbd -> 1887c12d1
CB-11095 Fix plugin add/removal when running on Node v.010 Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/1887c12d Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/1887c12d Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/1887c12d Branch: refs/heads/master Commit: 1887c12d1dac59f95662dfe22aa944f19500938a Parents: 9b8558d Author: Vladimir Kotikov <[email protected]> Authored: Mon Apr 18 11:55:31 2016 +0300 Committer: Vladimir Kotikov <[email protected]> Committed: Mon Apr 18 11:55:31 2016 +0300 ---------------------------------------------------------------------- bin/templates/cordova/lib/pluginHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1887c12d/bin/templates/cordova/lib/pluginHandlers.js ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js index d14bcf6..f77adf1 100644 --- a/bin/templates/cordova/lib/pluginHandlers.js +++ b/bin/templates/cordova/lib/pluginHandlers.js @@ -152,7 +152,7 @@ var handlers = { install: function (obj, plugin, project, options) { // Copy the plugin's files into the www directory. var moduleSource = path.resolve(plugin.dir, obj.src); - var moduleName = plugin.id + '.' + (obj.name || path.parse(obj.src).name); + var moduleName = plugin.id + '.' + (obj.name || path.basename(obj.src, path.extname (obj.src))); // Read in the file, prepend the cordova.define, and write it back out. var scriptContent = fs.readFileSync(moduleSource, 'utf-8').replace(/^\ufeff/, ''); // Window BOM --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
