Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[CB-4785] Fixing --no-build flag for run command
Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
  • Loading branch information
Jeffrey Heifetz authored and bryanhiggins committed Sep 12, 2013
1 parent 48a6475 commit 600130290eda5c3ab0933df1cf30f007e2ec7df7
Showing 1 changed file with 10 additions and 9 deletions.
@@ -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);
}


0 comments on commit 6001302

Please sign in to comment.