Updated Branches: refs/heads/master 8a361f958 -> 55602bd9d
[CB-4268] Add --device and proper error exit code to run script - This is the minimum change required to work within CLI. - Issues will be opened to present better error messages when the script is invoked from CLI. - The end goal is to have automatic device discovery. Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/55602bd9 Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/55602bd9 Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/55602bd9 Branch: refs/heads/master Commit: 55602bd9dfea8a2badebb4c9dfd5df9dca773e2d Parents: 8a361f9 Author: Bryan Higgins <[email protected]> Authored: Tue Jul 16 10:22:42 2013 -0400 Committer: Bryan Higgins <[email protected]> Committed: Tue Jul 16 10:28:21 2013 -0400 ---------------------------------------------------------------------- blackberry10/bin/templates/project/cordova/lib/run | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/55602bd9/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 aa226e6..9111a4a 100755 --- a/blackberry10/bin/templates/project/cordova/lib/run +++ b/blackberry10/bin/templates/project/cordova/lib/run @@ -258,6 +258,7 @@ function exec() { program .usage('[--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]') .option('-k, --keystorepass <password>', 'the password of signing key; needed for creating debug token') + .option('--device', 'run on connected device') .option('--target', 'specifies the target to run the application') .option('--no-uninstall', 'does not uninstall application from device') .option('--no-launch', 'do not launch the application on device') @@ -284,6 +285,8 @@ function exec() { } else { postBuild(); } + } else { + process.exit(1); } }
