Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E49AB173FF for ; Fri, 22 May 2015 01:15:17 +0000 (UTC) Received: (qmail 67015 invoked by uid 500); 22 May 2015 01:15:17 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 66990 invoked by uid 500); 22 May 2015 01:15:17 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 66978 invoked by uid 99); 22 May 2015 01:15:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 01:15:17 +0000 Date: Fri, 22 May 2015 01:15:17 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9051) Plugins don't get re-added if platforms folder deleted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555411#comment-14555411 ] ASF subversion and git services commented on CB-9051: ----------------------------------------------------- Commit bddcc8f2d709a55df2d91c14def61212843a14e8 in cordova-lib's branch refs/heads/master from [~TimBarham] [ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=bddcc8f ] CB-9051 Plugins don't get re-added if platforms folder deleted. To avoid attempting to add a plugin twice while adding a platform (a scenario that can occur now with automatic restore of plugins and platforms), when adding plugins to a newly added platform we check to see if the plugin has already been added by calling plugman's PlatformJson.isPluginInstalled(), which looks in plugins/.json to see if the plugin has been installed for a platform. If you delete a platform's folder, it's plugins/.json file still exists, so if you add the platform again, we think all plugins are already installed for it and so don't try to install them. Simple fix is to delete the platform's plugins/.json file before adding a platform, so we start with a clean slate. > Plugins don't get re-added if platforms folder deleted > ------------------------------------------------------ > > Key: CB-9051 > URL: https://issues.apache.org/jira/browse/CB-9051 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib, Plugman > Affects Versions: 5.0.0 > Reporter: Tim Barham > Assignee: Tim Barham > Original Estimate: 2h > Remaining Estimate: 2h > > If you add a platform, the delete the platforms folder (or just the folder for that specific platform), then add the platform again, no plugins are installed for that platform. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org