You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/01/09 02:40:19 UTC

ios commit: Make cordova_plist_to_config_xml able to handle binary plist files

Updated Branches:
  refs/heads/master 3dd41ff98 -> b4c2ca305


Make cordova_plist_to_config_xml able to handle binary plist files

Fixes https://issues.apache.org/jira/browse/CB-2160


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

Branch: refs/heads/master
Commit: b4c2ca3056bcf72a2717d8c7b34ec91ea25cc644
Parents: 3dd41ff
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Jan 8 20:39:37 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Jan 8 20:40:04 2013 -0500

----------------------------------------------------------------------
 bin/cordova_plist_to_config_xml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/b4c2ca30/bin/cordova_plist_to_config_xml
----------------------------------------------------------------------
diff --git a/bin/cordova_plist_to_config_xml b/bin/cordova_plist_to_config_xml
index bccdfd2..e781c63 100755
--- a/bin/cordova_plist_to_config_xml
+++ b/bin/cordova_plist_to_config_xml
@@ -73,6 +73,8 @@ def FindPlistFile(search_path):
 
 
 def ConvertPlist(src_path, dst_path):
+  # Run it through plutil to ensure it's not a binary plist.
+  os.system("plutil -convert xml1 '%s'" % src_path)
   plist = plistlib.readPlist(src_path)
   root = ElementTree.Element('cordova')