cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11908) Add edit-config to config.xml
Date Mon, 26 Sep 2016 21:30:20 GMT


ASF GitHub Bot commented on CB-11908:

GitHub user ktop opened a pull request:

    CB-11908 Add edit-config to config.xml

    Handles edit-config for config.xml. 
    Fixed up the conflict checking so that config.xml will take precedence over plugin.xml
    Added a remove mode to config.xml only, explained more below. 
    To test out these changes, remember to copy it to the platform's cordova-common. 
    A couple things to discuss/clarify:
    1. These changes will make config.xml changes take precedence over plugin.xml changes
even if --force is used. Is this alright? Or should --force actually force add the plugin
    2. There's no real way to "undo" edit-config changes in config.xml. As a fix, I've added
a "remove" mode that will remove the attributes specified. Do you think this is useful to
have? There's no such thing as restoring/reverting the xml elements to what they were before.
What was initially the old list of attributes from before the edit-config change will get
overwritten on every prepare. 

You can merge this pull request into a Git repository by running:

    $ git pull editconfigxml

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #492
commit d0ce4c506d2f7f24bda145e21f9b9af1543b1ecd
Author: ktop <>
Date:   2016-09-26T21:07:09Z

    CB-11908 Add edit-config to config.xml


> Add edit-config to config.xml
> -----------------------------
>                 Key: CB-11908
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaCommon, CordovaLib
>    Affects Versions: Master
>            Reporter: Karen Tran
>            Assignee: Karen Tran
>             Fix For: Master
> edit-config tag in plugin.xml allows users to modify xml elements from plugins. 
> This feature should be added to config.xml as well, so that users wouldn't need a plugin
in order to modify xml elements. 
> *config.xml changes takes precedence over plugin changes. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message