Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9188B200B64 for ; Tue, 2 Aug 2016 10:25:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 902AE160A8C; Tue, 2 Aug 2016 08:25:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D5F2A160A76 for ; Tue, 2 Aug 2016 10:25:10 +0200 (CEST) Received: (qmail 13928 invoked by uid 500); 2 Aug 2016 08:25:10 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 13917 invoked by uid 99); 2 Aug 2016 08:25:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2016 08:25:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99DA3E0007; Tue, 2 Aug 2016 08:25:09 +0000 (UTC) From: daserge To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-windows pull request #185: CB-11558 Make windows plugin rm remove Pr... Content-Type: text/plain Message-Id: <20160802082509.99DA3E0007@git1-us-west.apache.org> Date: Tue, 2 Aug 2016 08:25:09 +0000 (UTC) archived-at: Tue, 02 Aug 2016 08:25:11 -0000 Github user daserge commented on a diff in the pull request: https://github.com/apache/cordova-windows/pull/185#discussion_r73113256 --- Diff: template/cordova/lib/PluginHandler.js --- @@ -105,7 +105,7 @@ var handlers = { var type = obj.type; if(type === 'projectReference') { - project.removeProjectReference(path.join(plugin.dir, src), getTargetConditions(obj)); + project.removeProjectReference(path.join('..', '..', 'plugins', plugin.id, src), getTargetConditions(obj)); --- End diff -- Updated, thanks for review! There was an issue with mock dummyplugin, which PluginInfo.dir was initialized with a corresponding fixture path - so in case when the temp folder was on a different drive it caused path.relative to resolve in an absolute path in [PluginHandler.framework.install](https://github.com/daserge/cordova-windows/blob/2bc5d96bdd0f6c9328680bede1b535dde218e23c/template/cordova/lib/PluginHandler.js#L91). Normally we have a plugin.dir path initialized with relative path to the project root, i.e. `project_root/plugins/plugin-id` - so I've updated the tests accordingly. I've also tested that install/rm a plugin from another drive updates jsproj files properly. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org