You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/04/12 23:39:30 UTC
git commit: CB-495: fix for async build task,
added proper use of async flag + complete callback once done.
Updated Branches:
refs/heads/master 4c1f4dc98 -> 97775936f
CB-495: fix for async build task, added proper use of async flag + complete callback once done.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/97775936
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/97775936
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/97775936
Branch: refs/heads/master
Commit: 97775936f44c33af56868029907889b54ffd53d6
Parents: 4c1f4dc
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Apr 12 14:41:06 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Apr 12 14:41:06 2012 -0700
----------------------------------------------------------------------
Jakefile | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/97775936/Jakefile
----------------------------------------------------------------------
diff --git a/Jakefile b/Jakefile
index bc44507..3e62ff2 100644
--- a/Jakefile
+++ b/Jakefile
@@ -5,7 +5,7 @@ var childProcess = require('child_process')
var path = require("path")
desc("runs build");
-task('default', ['build', 'test'], function () {});
+task('default', ['build','test'], function () {});
desc("clean");
task('clean', ['set-cwd'], function () {
@@ -19,18 +19,15 @@ task('clean', ['set-cwd'], function () {
desc("compiles the source files for all extensions");
task('build', ['clean'], function () {
-
var packager = require("./build/packager");
var commitId = "";
- childProcess.exec("git log -1",function(err,stdout,stderr)
- {
+ childProcess.exec("git log -1",function(err,stdout,stderr) {
var stdoutLines = stdout.split("\n");
- if(stdoutLines.length > 0)
- {
+ if(stdoutLines.length > 0) {
commitId = stdoutLines[0];
}
- console.log("commitId = " + commitId);
+ console.log("commit = " + commitId);
packager.generate("blackberry",commitId);
packager.generate("playbook",commitId);
packager.generate("ios",commitId);
@@ -38,11 +35,9 @@ task('build', ['clean'], function () {
packager.generate("android",commitId);
packager.generate("errgen",commitId);
packager.generate("test",commitId);
+ complete();
});
-
-
-
-});
+}, true);
desc("prints a dalek");
task('dalek', ['set-cwd'], function () {