cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject webworks commit: CB-7658 generateTabletXMLFile only do munging if config.configFileInjections has elements
Date Mon, 29 Sep 2014 20:27:14 GMT
Repository: cordova-blackberry
Updated Branches:
  refs/heads/master e5e9e8669 -> 7005fb555


CB-7658 generateTabletXMLFile only do munging if config.configFileInjections has elements


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

Branch: refs/heads/master
Commit: 7005fb555f53f56fb4687824f0994042feed5349
Parents: e5e9e86
Author: Josh Soref <jsoref@blackberry.com>
Authored: Mon Sep 29 15:50:44 2014 -0400
Committer: Josh Soref <jsoref@blackberry.com>
Committed: Mon Sep 29 15:51:07 2014 -0400

----------------------------------------------------------------------
 bin/templates/project/cordova/lib/native-packager.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7005fb55/bin/templates/project/cordova/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/native-packager.js b/bin/templates/project/cordova/lib/native-packager.js
index 9f53779..6b5692c 100644
--- a/bin/templates/project/cordova/lib/native-packager.js
+++ b/bin/templates/project/cordova/lib/native-packager.js
@@ -193,7 +193,9 @@ function generateTabletXMLFile(session, config) {
     xmlData = data2xml('qnx', xmlObject);
 
     //Inject any config-file modifications for bar-descriptor.xml
-    if (config.configFileInjections && Array.isArray(config.configFileInjections))
{
+    if (config.configFileInjections &&
+        Array.isArray(config.configFileInjections) &&
+        config.configFileInjections.length) {
         xmlDoc = new et.ElementTree(et.XML(xmlData));
         config.configFileInjections.forEach(function (config_file) {
             if (config_file.attrib["parent"] && config_file.attrib["target"]  &&
config_file.attrib["target"] === "bar-descriptor.xml") {


Mime
View raw message