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 C33EF11F43 for ; Tue, 22 Jul 2014 01:58:38 +0000 (UTC) Received: (qmail 6667 invoked by uid 500); 22 Jul 2014 01:58:38 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 6641 invoked by uid 500); 22 Jul 2014 01:58:38 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 6627 invoked by uid 99); 22 Jul 2014 01:58:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2014 01:58:38 +0000 Date: Tue, 22 Jul 2014 01:58:38 +0000 (UTC) From: "Nikolai Kotchetkov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7142) Support for restoring plugin "preferences" in "restore" CLI command 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-7142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14069695#comment-14069695 ] Nikolai Kotchetkov commented on CB-7142: ---------------------------------------- Well, I took the {{preference}} word basically on two purposes: # The {{preference}} is used in [plugin.xml|http://cordova.apache.org/docs/en/3.5.0/plugin_ref_spec.md.html#Plugin%20Specification] to describe user variables # It's possible and easy to implement a mix of globally defined (in config.xml) preferencies with plugin-specific if needed. Like a plugin may take a global {{orientation}} preference and make use of it. That was an idea behind the variable name... > Support for restoring plugin "preferences" in "restore" CLI command > ------------------------------------------------------------------- > > Key: CB-7142 > URL: https://issues.apache.org/jira/browse/CB-7142 > Project: Apache Cordova > Issue Type: Improvement > Components: CLI, Plugman > Affects Versions: 3.5.0 > Reporter: Nikolai Kotchetkov > Labels: features > Original Estimate: 168h > Remaining Estimate: 168h > > Thanks for great improvement having the plugin list in config.xml! > However it will be great if "preferences" passed to plugman as variables could be saved there to. > Like: > {noformat} > > > > > > {noformat} > I've made a rather simple fix for that in [this commit|https://github.com/motorro/cordova-lib/commit/4c5765404ed8714a5ea0f8d5e026d3280335405d] > The code also has a feature of setting and using a plugin URL to install. > Two more things required: > # To be able to specify preferences per plugin to avoid possible name conflict - that involves installing plugins one-by-one rather than in batch as far as I understand the 'plugin("add")' > # Add support to reinstalling plugins with respect to preferences on platform add - did not dig the code yet. > It would be nice if someone comment on the issue - am I right or missing something already done. Also I can fullfill the requirement myself and issue a pull request if the feature seems handy. -- This message was sent by Atlassian JIRA (v6.2#6252)