cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffheif...@apache.org
Subject [31/50] [abbrv] webworks commit: [CB-4734] Added list of files to keep in chrome/lib
Date Fri, 27 Sep 2013 14:26:35 GMT
[CB-4734] Added list of files to keep in chrome/lib

Reviewed by Bryan Higgins <bhiggins@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/48a64755
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/48a64755
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/48a64755

Branch: refs/heads/3.1.x
Commit: 48a64755cff91d48acbe026d068672c9b6453184
Parents: 29ba97c
Author: Rowell Cruz <rcruz@blackberry.com>
Authored: Thu Sep 5 11:53:48 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Thu Sep 5 15:40:40 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/file-manager.js        | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/48a64755/blackberry10/bin/templates/project/cordova/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/file-manager.js b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
index 21493df..8695a9b 100755
--- a/blackberry10/bin/templates/project/cordova/lib/file-manager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
@@ -27,7 +27,8 @@ var path = require("path"),
     CLIENT_JS = "client.js",
     SERVER_JS = "index.js",
     VALID_EXTENSIONS = [".js", ".json"],
-    CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/;
+    CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/,
+    MODULES_TO_KEEP = ["lib/utils.js", "lib/exception.js"];
 
 function unzip(from, to) {
     var data, entries, p, parent;
@@ -140,7 +141,10 @@ function generateFrameworkModulesJS(session) {
                       fs.readFileSync(module.file, "utf-8") + "\n" +
                       "});\n";
         frameworkModulesStr += "'" + module.name + "'" +  (index !== modulesList.length-1
? ", " : "");
-        fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
+        // Issue with 10.1 webplatform - requires certain files in chrome/lib
+        if (MODULES_TO_KEEP.indexOf(module.name) < 0) {
+            fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
+        }
     });
 
     modulesStr += "}());";


Mime
View raw message