cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kamrik <>
Subject [GitHub] cordova-lib pull request: CB-8595 Merge platforms.js from cordova ...
Date Wed, 11 Mar 2015 14:53:47 GMT
Github user kamrik commented on a diff in the pull request:
    --- Diff: cordova-lib/src/plugman/uninstall.js ---
    @@ -293,58 +293,25 @@ function runUninstallPlatform(actions, platform, project_dir, plugin_dir,
     function handleUninstall(actions, platform, pluginInfo, project_dir, www_dir, plugins_dir,
is_top_level, options) {
         var plugin_id =;
         var plugin_dir = pluginInfo.dir;
    -    var platform_modules = require('./platforms');
    -    var handler = platform_modules[platform];
    -    www_dir = www_dir || handler.www_dir(project_dir);
    +    var handler = platform_modules.getPlatformProject(platform, project_dir);
    +    www_dir = www_dir || handler.www_dir();
         events.emit('log', 'Uninstalling ' + plugin_id + ' from ' + platform);
    +    var pluginItems = pluginInfo.getFilesAndFrameworks(platform);
         var assets = pluginInfo.getAssets(platform);
    --- End diff --
    Assets are not copied during installation, only during prepare (because www dir is blown
on prepare). It wouldn't harm to copy them here as well, just some duplication, but they are
also currently dealt with by directly calling common.asset.install(), not from the handlers
with a slightly different function signature, so I left it as is for now.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message