cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [24/50] [abbrv] webworks commit: writeFile in packager-utils updated to be sync
Date Tue, 14 May 2013 04:15:31 GMT
writeFile in packager-utils updated to be sync

This fixes a problem where config/user.js has not yet been written before it is added to frameworkModules.js
for the simulator bar file.

Reviewed by Jeffrey Heifetz <jheifetz@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>


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

Branch: refs/heads/master
Commit: 2862189b17515bfb86e91bdd7b02cbc0d705d112
Parents: b0a540b
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Wed Apr 24 11:38:35 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Fri May 3 10:13:31 2013 -0400

----------------------------------------------------------------------
 .../project/cordova/lib/packager-utils.js          |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2862189b/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/packager-utils.js b/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
index 9b1c2e0..09465e8 100644
--- a/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
@@ -47,9 +47,7 @@ _self = {
             wrench.mkdirSyncRecursive(fileLocation, "0755");
         }
 
-        fs.writeFile(path.join(fileLocation, fileName), fileData, function (err) {
-            if (err) throw err;
-        });
+        fs.writeFileSync(path.join(fileLocation, fileName), fileData);
     },
     
     copyFile: function (srcFile, destDir, baseDir) {


Mime
View raw message