cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bennma...@apache.org
Subject git commit: [wp-parsers] fixed deletion of cordova.js reference from .csproj
Date Mon, 15 Jul 2013 19:04:08 GMT
Updated Branches:
  refs/heads/master 8a1ddfb28 -> 261fd29a1


[wp-parsers] fixed deletion of cordova.js reference from .csproj


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/261fd29a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/261fd29a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/261fd29a

Branch: refs/heads/master
Commit: 261fd29a1d92c161985be68183fff2d5cf9f9f0c
Parents: 8a1ddfb
Author: Benn Mapes <benn.mapes@gmail.com>
Authored: Mon Jul 15 12:03:01 2013 -0700
Committer: Benn Mapes <benn.mapes@gmail.com>
Committed: Mon Jul 15 12:03:01 2013 -0700

----------------------------------------------------------------------
 src/metadata/wp7_parser.js | 2 +-
 src/metadata/wp8_parser.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/261fd29a/src/metadata/wp7_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/wp7_parser.js b/src/metadata/wp7_parser.js
index 88ed93c..22319b9 100644
--- a/src/metadata/wp7_parser.js
+++ b/src/metadata/wp7_parser.js
@@ -176,7 +176,7 @@ module.exports.prototype = {
             var files = group.findall('Content');
             for (var j = 0, k = files.length; j < k; j++) {
                 var file = files[j];
-                if (file.attrib.Include.substr(0, 3) == 'www') {
+                if (file.attrib.Include.substr(0, 3) == 'www' && file.attrib.Include.indexOf('cordova.js')
< 0) {
                     // remove file reference
                     group.remove(0, file);
                     // remove ItemGroup if empty

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/261fd29a/src/metadata/wp8_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/wp8_parser.js b/src/metadata/wp8_parser.js
index 07f5e0b..6271c40 100644
--- a/src/metadata/wp8_parser.js
+++ b/src/metadata/wp8_parser.js
@@ -177,7 +177,7 @@ module.exports.prototype = {
             var files = group.findall('Content');
             for (var j = 0, k = files.length; j < k; j++) {
                 var file = files[j];
-                if (file.attrib.Include.substr(0, 3) == 'www') {
+                if (file.attrib.Include.substr(0, 3) == 'www' && file.attrib.Include.indexOf('cordova.js')
< 0) {
                     // remove file reference
                     group.remove(0, file);
                     // remove ItemGroup if empty


Mime
View raw message