You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michal Mocny (JIRA)" <ji...@apache.org> on 2014/09/22 22:05:34 UTC
[jira] [Resolved] (CB-7615) Config.xml changes cannot be made
inside pre-prepare hook
[ https://issues.apache.org/jira/browse/CB-7615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Mocny resolved CB-7615.
------------------------------
Resolution: Fixed
> Config.xml changes cannot be made inside pre-prepare hook
> ---------------------------------------------------------
>
> Key: CB-7615
> URL: https://issues.apache.org/jira/browse/CB-7615
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib
> Affects Versions: 3.6.0
> Reporter: Michal Mocny
> Assignee: Michal Mocny
> Priority: Minor
>
> If your pre-prepare hook modifies the top-level application config.xml, those changes will not be reflected until the next prepare.
> The reason is that cordova-lib incorrectly reads the state of the config file right at the state of prepare, before running pre-prepare hooks. Since the content isn't actually used until after the pre-prepare hooks are fired, the fix is trivial, just read the file later hooks fire!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)