Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B3CA0102F8 for ; Fri, 21 Feb 2014 22:39:55 +0000 (UTC) Received: (qmail 13112 invoked by uid 500); 21 Feb 2014 22:39:43 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 12946 invoked by uid 500); 21 Feb 2014 22:39:41 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 12736 invoked by uid 99); 21 Feb 2014 22:39:38 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 22:39:38 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E1F5E82F5CA; Fri, 21 Feb 2014 22:39:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Fri, 21 Feb 2014 22:39:40 -0000 Message-Id: <82580a6b4a6944f382b39d6a77686d98@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/8] git commit: CB-5720: emit warning if resource-file is not supported on platform CB-5720: emit warning if resource-file is not supported on platform Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/98c9c5ea Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/98c9c5ea Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/98c9c5ea Branch: refs/heads/master Commit: 98c9c5ea520152ecbd0bde2f7e7d3fe53bcc5bc3 Parents: 8a4e8d8 Author: ignisvulpis Authored: Wed Jan 8 18:22:16 2014 +0100 Committer: ignisvulpis Committed: Wed Jan 8 18:22:16 2014 +0100 ---------------------------------------------------------------------- src/platforms/amazon-fireos.js | 1 + src/platforms/android.js | 7 +++---- src/platforms/blackberry10.js | 1 + src/platforms/firefoxos.js | 1 + src/platforms/windows8.js | 1 + src/platforms/wp7.js | 1 + src/platforms/wp8.js | 1 + 7 files changed, 9 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/amazon-fireos.js ---------------------------------------------------------------------- diff --git a/src/platforms/amazon-fireos.js b/src/platforms/amazon-fireos.js index 9e5e753..c6cefd6 100644 --- a/src/platforms/amazon-fireos.js +++ b/src/platforms/amazon-fireos.js @@ -58,6 +58,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/android.js ---------------------------------------------------------------------- diff --git a/src/platforms/android.js b/src/platforms/android.js index 099f90b..233d46b 100644 --- a/src/platforms/android.js +++ b/src/platforms/android.js @@ -60,13 +60,12 @@ module.exports = { install:function(el, plugin_dir, project_dir) { var src = el.attrib.src; var target = el.attrib.target; - var dest = path.join("res", target); - common.copyFile(plugin_dir, src, project_dir, dest); + require('../../plugman').emit('verbose', 'copying file ' + src + ' to ' + target); + common.copyFile(plugin_dir, src, project_dir, target); }, uninstall:function(el, project_dir) { var target = el.attrib.target; - var dest = path.join("res", target); - common.removeFile(project_dir, dest); + common.removeFile(project_dir, target); } } }; http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/blackberry10.js ---------------------------------------------------------------------- diff --git a/src/platforms/blackberry10.js b/src/platforms/blackberry10.js index 4fc998c..ae3d324 100644 --- a/src/platforms/blackberry10.js +++ b/src/platforms/blackberry10.js @@ -67,6 +67,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/firefoxos.js ---------------------------------------------------------------------- diff --git a/src/platforms/firefoxos.js b/src/platforms/firefoxos.js index 6d5aaf8..1c8163c 100644 --- a/src/platforms/firefoxos.js +++ b/src/platforms/firefoxos.js @@ -22,6 +22,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/windows8.js ---------------------------------------------------------------------- diff --git a/src/platforms/windows8.js b/src/platforms/windows8.js index f6b2a6e..3661cf6 100644 --- a/src/platforms/windows8.js +++ b/src/platforms/windows8.js @@ -60,6 +60,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/wp7.js ---------------------------------------------------------------------- diff --git a/src/platforms/wp7.js b/src/platforms/wp7.js index 221a856..9de9ddf 100644 --- a/src/platforms/wp7.js +++ b/src/platforms/wp7.js @@ -55,6 +55,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { } http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/98c9c5ea/src/platforms/wp8.js ---------------------------------------------------------------------- diff --git a/src/platforms/wp8.js b/src/platforms/wp8.js index db75920..9e014c6 100644 --- a/src/platforms/wp8.js +++ b/src/platforms/wp8.js @@ -55,6 +55,7 @@ module.exports = { }, "resource-file":{ install:function(el, plugin_dir, project_dir) { + require('../../plugman').emit('verbose', 'resource-file is not supported on this platform'); }, uninstall:function(el, project_dir) { }