You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2013/07/16 02:20:14 UTC

git commit: [windowsphone] csproj update for Content references

Updated Branches:
  refs/heads/master 24e452a58 -> 2c284820b


[windowsphone] csproj update for Content references


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/2c284820
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/2c284820
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/2c284820

Branch: refs/heads/master
Commit: 2c284820bb9ff1ef651eee8affd84f83dd23e489
Parents: 24e452a
Author: Benn Mapes <be...@gmail.com>
Authored: Mon Jul 15 17:19:13 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Mon Jul 15 17:19:13 2013 -0700

----------------------------------------------------------------------
 src/util/csproj.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/2c284820/src/util/csproj.js
----------------------------------------------------------------------
diff --git a/src/util/csproj.js b/src/util/csproj.js
index 475a5d6..d3b9180 100644
--- a/src/util/csproj.js
+++ b/src/util/csproj.js
@@ -70,14 +70,14 @@ csproj.prototype = {
         var item_groups = this.xml.findall('ItemGroup');
         for (var i = 0, l = item_groups.length; i < l; i++) {
             var group = item_groups[i];
-            var files = group.findall('Compile').concat(group.findall('Page'));
+            var files = group.findall('Compile').concat(group.findall('Page')).concat(group.findall('Content'));
             for (var j = 0, k = files.length; j < k; j++) {
                 var file = files[j];
                 if (file.attrib.Include == relative_path) {
                     // remove file reference
                     group.remove(0, file);
                     // remove ItemGroup if empty
-                    var new_group = group.findall('Compile').concat(group.findall('Page'));
+                    var new_group = group.findall('Compile').concat(group.findall('Page')).concat(group.findall('Content'));
                     if(new_group.length < 1) {
                         this.xml.getroot().remove(0, group);
                     }