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 73C2F1091F for ; Mon, 29 Jul 2013 23:36:22 +0000 (UTC) Received: (qmail 58307 invoked by uid 500); 29 Jul 2013 23:36:22 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 58289 invoked by uid 500); 29 Jul 2013 23:36:22 -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 58282 invoked by uid 99); 29 Jul 2013 23:36:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 23:36:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3C71719ED8; Mon, 29 Jul 2013 23:36:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: commits@cordova.apache.org Date: Mon, 29 Jul 2013 23:36:30 -0000 Message-Id: <4dfe3c7cc76942249f196eece2b221a8@git.apache.org> In-Reply-To: <9aa3dbf952724d09abbe033369956a9c@git.apache.org> References: <9aa3dbf952724d09abbe033369956a9c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/12] git commit: plugins are added to www/plugins/ folder plugins are added to www/plugins/ folder Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/f13edb19 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/f13edb19 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/f13edb19 Branch: refs/heads/master Commit: f13edb19920dca7ae4622221a358d68e592533da Parents: 4db9a96 Author: purplecabbage Authored: Mon Jul 29 14:20:39 2013 -0700 Committer: purplecabbage Committed: Mon Jul 29 16:34:08 2013 -0700 ---------------------------------------------------------------------- src/platforms/windows8.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f13edb19/src/platforms/windows8.js ---------------------------------------------------------------------- diff --git a/src/platforms/windows8.js b/src/platforms/windows8.js index beb5e40..35779fd 100644 --- a/src/platforms/windows8.js +++ b/src/platforms/windows8.js @@ -35,10 +35,8 @@ module.exports = { return manifest.find("Properties/DisplayName").text; }, parseProjectFile:function(project_dir) { - var project_files = glob.sync('*.jsproj', { - cwd:project_dir - }); - if (project_files.length === 0) { + var project_files = glob.sync('*.jsproj', { cwd:project_dir }); + if (project_files.length == 0) { throw new Error(this.InvalidProjectPathError); } return new w8jsproj(path.join(project_dir, project_files[0])); @@ -46,13 +44,15 @@ module.exports = { "source-file":{ install:function(source_el, plugin_dir, project_dir, plugin_id, project_file) { var targetDir = source_el.attrib['target-dir'] || ''; - var dest = path.join('Plugins', plugin_id, targetDir, path.basename(source_el.attrib['src'])); + var dest = path.join('www', 'plugins', plugin_id, targetDir, path.basename(source_el.attrib['src'])); common.copyFile(plugin_dir, source_el.attrib['src'], project_dir, dest); // add reference to this file to jsproj. project_file.addSourceFile(dest); }, uninstall:function(source_el, project_dir, plugin_id, project_file) { - var dest = path.join('Plugins', plugin_id, source_el.attrib['target-dir'] ? source_el.attrib['target-dir'] : '', path.basename(source_el.attrib['src'])); + var dest = path.join('www', 'plugins', plugin_id, + source_el.attrib['target-dir'] ? source_el.attrib['target-dir'] : '', + path.basename(source_el.attrib['src'])); common.removeFile(project_dir, dest); // remove reference to this file from csproj. project_file.removeSourceFile(dest);