Repository: cordova-mobile-spec Updated Branches: refs/heads/master ce1c1f043 -> 471ab597e
Speed up createmobilespec.js a bit by adding all plugins in one exec Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/471ab597 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/471ab597 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/471ab597 Branch: refs/heads/master Commit: 471ab597e0c268eac07da53fad917549d61535e8 Parents: ce1c1f0 Author: Andrew Grieve <[email protected]> Authored: Tue Oct 7 15:51:46 2014 -0400 Committer: Andrew Grieve <[email protected]> Committed: Tue Oct 7 15:51:46 2014 -0400 ---------------------------------------------------------------------- createmobilespec/createmobilespec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/471ab597/createmobilespec/createmobilespec.js ---------------------------------------------------------------------- diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js index 95788bd..73c967d 100755 --- a/createmobilespec/createmobilespec.js +++ b/createmobilespec/createmobilespec.js @@ -451,12 +451,14 @@ function installPlugins() { // Install new-style test plugins console.log("Adding plugin tests using CLI..."); + var pluginTestPaths = []; shelljs.ls('plugins').forEach(function(plugin) { var potential_tests_plugin_xml = path.join('plugins', plugin, 'tests', 'plugin.xml'); if (fs.existsSync(potential_tests_plugin_xml)) { - shelljs.exec(cli + " plugin add " + path.dirname(potential_tests_plugin_xml)); + pluginTestPaths.push(path.dirname(potential_tests_plugin_xml)); } }); + shelljs.exec(cli + " plugin add " + pluginTestPaths.join(' ')); popd(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
