You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2015/08/25 21:08:27 UTC
[2/2] webworks commit: Default Icon is now copied into platform_www.
Fixes issue with build failing when no icon tag is present in config.xml
Default Icon is now copied into platform_www.
Fixes issue with build failing when no icon tag is present in config.xml
Closes #189
Closes #190
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/e489a527
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/e489a527
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/e489a527
Branch: refs/heads/master
Commit: e489a527bcc9afefe8f76fc9666c435eafd5885e
Parents: 8179222
Author: Tim Windsor <ti...@gmail.com>
Authored: Wed Aug 19 13:59:40 2015 -0400
Committer: Bryan Higgins <br...@bryanhiggins.net>
Committed: Tue Aug 25 15:07:10 2015 -0400
----------------------------------------------------------------------
bin/templates/project/cordova/lib/config-parser.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/e489a527/bin/templates/project/cordova/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/config-parser.js b/bin/templates/project/cordova/lib/config-parser.js
index 7cc4013..20cb53d 100644
--- a/bin/templates/project/cordova/lib/config-parser.js
+++ b/bin/templates/project/cordova/lib/config-parser.js
@@ -15,6 +15,7 @@
*/
/*jshint sub:true*/
var fs = require("fs"),
+ path = require("path"),
util = require('util'),
xml2js = require('xml2js'),
packagerUtils = require('./packager-utils'),
@@ -271,8 +272,8 @@ function processIconData(data, widgetConfig, session) {
//
var default_icon_filename = "default-icon.png",
default_icon_src = session.conf.DEFAULT_ICON,
- default_icon_dst = session.sourceDir;
-
+ default_icon_dst = path.join(session.conf.PROJECT_ROOT, 'platform_www');
+
processSplashScreenIconSrc(data, widgetConfig, "icon");
if (!widgetConfig.icon) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org