CB-2782 adding support for <info>
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/2799c849 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/2799c849 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/2799c849 Branch: refs/heads/future Commit: 2799c849aa82b83169b3052580b1c6919503b1b7 Parents: 9a5045c Author: Anis Kadri <[email protected]> Authored: Thu Apr 4 14:54:31 2013 -0700 Committer: Anis Kadri <[email protected]> Committed: Thu Apr 4 14:54:31 2013 -0700 ---------------------------------------------------------------------- plugman.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/2799c849/plugman.js ---------------------------------------------------------------------- diff --git a/plugman.js b/plugman.js index 4e8a51d..a422dab 100755 --- a/plugman.js +++ b/plugman.js @@ -98,6 +98,7 @@ function execAction(action, platform, project_dir, plugin_dir, cli_variables) { , filtered_variables = {}; if (action == 'install') { + // checking preferences prefs = plugin_et.findall('./preference') || []; prefs = prefs.concat(plugin_et.findall('./platform[@name="'+platform+'"]/preference')); var missing_vars = []; @@ -112,6 +113,10 @@ function execAction(action, platform, project_dir, plugin_dir, cli_variables) { console.error('Variable missing: ' + missing_vars.join(", ")); return; } + + if((info = plugin_et.find('./platform[@name="'+platform+'"]/info'))) { + console.log(info.text); + } } // run the platform-specific function
