You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/10/07 21:52:08 UTC

spec commit: Speed up createmobilespec.js a bit by adding all plugins in one exec

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 <ag...@chromium.org>
Authored: Tue Oct 7 15:51:46 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org