You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/12/15 20:25:20 UTC

webworks commit: CB-8161 Run: accept --nobuild as alias to --no-build

Repository: cordova-blackberry
Updated Branches:
  refs/heads/master 642e72792 -> c3b6779eb


CB-8161 Run: accept --nobuild as alias to --no-build

Cordova CLI is passing --nobuild down to platform scripts.

Previously this was a BB10 only command.


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

Branch: refs/heads/master
Commit: c3b6779eb572ba5b69aa14d96698effe2516cac4
Parents: 642e727
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Mon Dec 15 14:24:01 2014 -0500
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Dec 15 14:24:01 2014 -0500

----------------------------------------------------------------------
 bin/templates/project/cordova/lib/run.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/c3b6779e/bin/templates/project/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/run.js b/bin/templates/project/cordova/lib/run.js
index 15ff7eb..6c2946e 100755
--- a/bin/templates/project/cordova/lib/run.js
+++ b/bin/templates/project/cordova/lib/run.js
@@ -63,9 +63,14 @@ options
     });
 
 process.argv.forEach(function (argument, index, args) {
+    //Also accept --target <target name>
     if (argument.match(/^--target=/)) {
         args.splice(index, 1, "--target", argument.substr("--target=".length));
     }
+    //Cordova CLI has adopted '--nobuild'; change it to --no-build
+    if (argument === '--nobuild') {
+        args[index] = '--no-build';
+    }
 });
 
 options.parse(process.argv);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org