cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject android commit: CB-5349: fixed regression in update script
Date Tue, 12 Nov 2013 00:37:52 GMT
Updated Branches:
  refs/heads/master b895a0c33 -> 763e34e86


CB-5349: fixed regression in update script


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

Branch: refs/heads/master
Commit: 763e34e861b26a7e938a3e59b5f743ea1c8d7f95
Parents: b895a0c
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Nov 11 16:32:34 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Nov 11 16:32:34 2013 -0800

----------------------------------------------------------------------
 bin/lib/create.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/763e34e8/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 7b015ac..c569669 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -181,10 +181,10 @@ exports.createProject = function(project_path, package_name, project_name,
proje
 
 // Returns a promise.
 exports.updateProject = function(projectPath) {
+    var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
     // Check that requirements are met and proper targets are installed
     return check_reqs.run()
     .then(function() {
-        var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
         var target_api = check_reqs.get_target();
         return ensureJarIsBuilt(version, target_api);
     }).then(function() {


Mime
View raw message