cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject webworks commit: [CB-4785] Fixing --no-build flag for run command
Date Thu, 12 Sep 2013 13:37:04 GMT
Updated Branches:
  refs/heads/master 48a64755c -> 600130290


[CB-4785] Fixing --no-build flag for run command

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/60013029
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/60013029
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/60013029

Branch: refs/heads/master
Commit: 600130290eda5c3ab0933df1cf30f007e2ec7df7
Parents: 48a6475
Author: Jeffrey Heifetz <jheifetz@blackberry.com>
Authored: Tue Sep 10 17:03:54 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Thu Sep 12 09:39:35 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/run        | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/60013029/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index a2d1b45..3aa386d 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -286,16 +286,17 @@ function handleDebugToken(deployTarget, allDone) {
 function install(deployTarget, done) {
     var buildCmd = utils.isWindows() ? "build" : "./build",
         buildArgs = program.keystorepass ? ["-k", program.keystorepass] : [],
-        projectRootDir = path.normalize(path.join(__dirname, ".."));
+        projectRootDir = path.normalize(path.join(__dirname, "..")),
+        installTasks = [];
 
-    async.series(
-        [
-            utils.exec.bind(this, buildCmd, buildArgs, {"cwd": projectRootDir}),
-            uninstall.bind(this, deployTarget),
-            execNativeDeploy.bind(this, generateOptions(deployTarget))
-        ],
-        done
-    );
+    if (program.build) {
+        installTasks.push(utils.exec.bind(this, buildCmd, buildArgs, {"cwd": projectRootDir}));
+    }
+
+    installTasks.push(uninstall.bind(this, deployTarget),
+                      execNativeDeploy.bind(this, generateOptions(deployTarget)));
+
+    async.series(installTasks, done);
 }
 
 


Mime
View raw message