cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommy-Carlos Williams (JIRA)" <>
Subject [jira] [Commented] (CB-2820) Plugins added via the CLI are clobbered during prepare
Date Wed, 27 Mar 2013 02:25:15 GMT


Tommy-Carlos Williams commented on CB-2820:

OK. So the above is all wrong.

It seems that instead, what is happening is that because my ./plugins had a rogue .DS_Store
entry, the prepare stage was trying to install it as a plugin.

{ [Error: ENOTDIR, not a directory '/Users/tommy/devgeeks/spideroak/SpiderOakMobileClient/plugins/.DS_Store/plugin.xml']
  errno: 27,
  code: 'ENOTDIR',
  path: '/Users/tommy/devgeeks/spideroak/SpiderOakMobileClient/plugins/.DS_Store/plugin.xml',
  syscall: 'open' }

Not sure what the solution here is, but `cordova build ...` was so silent it was failing on
the above and I had no idea what was happening.

Luckily when trying to further diagnose it I ran `cordova prepare` which *did* throw an error.

Feel free to close this, but it's worth thinking about what it means in terms of silent failing
and just enumerating in a dir vs something more considered.
> Plugins added via the CLI are clobbered during prepare
> ------------------------------------------------------
>                 Key: CB-2820
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.6.0
>            Reporter: Tommy-Carlos Williams
>            Assignee: Filip Maj
>              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:

View raw message