You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Braden Shepherdson (JIRA)" <ji...@apache.org> on 2013/04/16 20:15:20 UTC

[jira] [Resolved] (CB-2820) Plugins added via the CLI are clobbered during prepare

     [ https://issues.apache.org/jira/browse/CB-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson resolved CB-2820.
------------------------------------

    Resolution: Not A Problem
      Assignee: Braden Shepherdson  (was: Filip Maj)

This is intended behavior. The ./platforms directory is a build artifact. Any and all commands are entitled to overwrite and mangle it.
                
> Plugins added via the CLI are clobbered during prepare
> ------------------------------------------------------
>
>                 Key: CB-2820
>                 URL: https://issues.apache.org/jira/browse/CB-2820
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.6.0
>            Reporter: Tommy-Carlos Williams
>            Assignee: Braden Shepherdson
>              Labels: plugin
>
> Latest CLI (2.6.0) - add a plugin using `cordova add plugin /path/to/plugin` and the src is copied into the correct locations in the ./platforms/* folders but the js from the plugin is not copied into the "main" ./www folder.
> Therefore, when you run `cordova build <platform>` the prepare stage copies over the ./platforms/.../www folder with the main app one in ./www effectively removing the plugin's js file from the platform's www folder and rendering the plugin broken.
> It seems like it is in a halfway state between the "old" way of installing the plugin's js into ./www on the first `cordova plugin add ...` and the "new" way of installing the plugin into ./platforms/* during prepare. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira