cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-11205) Plugin Add does not respect variables saved in config.xml
Date Fri, 29 Jul 2016 14:08:20 GMT


ASF subversion and git services commented on CB-11205:

Commit acb7b0a0e68499f589cf585830bfb6461d0e9f39 in cordova-lib's branch refs/heads/master
from [~Nikita Matrosov]
[;h=acb7b0a ]

CB-11205 Respect saved variables when installing plugin

This closes #471

> Plugin Add does not respect variables saved in config.xml
> ---------------------------------------------------------
>                 Key: CB-11205
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Richard B Knoll
>            Priority: Minor
>              Labels: triaged
> If a plugin with CLI variables is saved using {{--save}}, the variables will be saved
into config.xml along with the plugin spec like so:
> {code}
> <plugin name="my-plugin" spec="1.2.0" >
>     <variable name="MY_VARIABLE" value ="my_variable_value" />
> </plugin>
> {code}
> Which corresponds to 
> {code}
> cordova plugin add my-plugin@1.2.0 --variable MY_VARIABLE=my_variable_value --save
> {code}
> Cordova prepare will restore the plugin using the saved plugin spec and variable values.
Plugin add will used the saved spec, but not the saved variable values. Plugin add should
behave the same way as prepare.

This message was sent by Atlassian JIRA

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

View raw message