You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/06/21 10:08:50 UTC

cordova-lib git commit: Fix config.xml path in PlatformApi.prepare

Repository: cordova-lib
Updated Branches:
  refs/heads/master 1f29cba5c -> 0c6f88d2b


Fix config.xml path in PlatformApi.prepare

var sourceCfg was being assigned the 'path' property, rather than the whole project config object. This was causing an error when attempting to copy the config file on line 191

This closes #457


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

Branch: refs/heads/master
Commit: 0c6f88d2b136cf78ce57f323b75600a9b284e58a
Parents: 1f29cba
Author: aramando <gi...@aramando.net>
Authored: Tue Jun 14 10:03:08 2016 +0100
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Tue Jun 21 12:57:14 2016 +0300

----------------------------------------------------------------------
 cordova-lib/src/platforms/PlatformApiPoly.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0c6f88d2/cordova-lib/src/platforms/PlatformApiPoly.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/platforms/PlatformApiPoly.js b/cordova-lib/src/platforms/PlatformApiPoly.js
index 6f6c90c..e0c3e79 100644
--- a/cordova-lib/src/platforms/PlatformApiPoly.js
+++ b/cordova-lib/src/platforms/PlatformApiPoly.js
@@ -178,7 +178,7 @@ PlatformApiPoly.prototype.prepare = function (cordovaProject, options) {
     var defaultConfig = path.join(this.root, 'cordova', 'defaults.xml');
     var ownConfig = this.getPlatformInfo().locations.configXml;
 
-    var sourceCfg = cordovaProject.projectConfig.path;
+    var sourceCfg = cordovaProject.projectConfig;
     // If defaults.xml is present, overwrite platform config.xml with it.
     // Otherwise save whatever is there as defaults so it can be
     // restored or copy project config into platform if none exists.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org