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/10/18 20:02:41 UTC
[jira] [Updated] (CB-5127) Detect changes to plugins and reinstall
their source on prepare
[ https://issues.apache.org/jira/browse/CB-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Braden Shepherdson updated CB-5127:
-----------------------------------
Component/s: (was: CordovaJS)
CLI
Fix Version/s: 3.2.0
Assignee: Braden Shepherdson
Issue Type: Improvement (was: Bug)
Summary: Detect changes to plugins and reinstall their source on prepare (was: Plugin src (at least on Android) is not copied to the platforms directory on prepare)
This is by design, sort of.
Prepare is not supposed to copy plugin source code, on any platform. Therefore this isn't a bug.
On the other hand, we want to add a feature where the CLI will automatically reinstall plugins that have changed locally (in plugins/) on prepare, to make plugin development easier. As part of that change, we can also make sure that plugins are reinstalled in the case where they're missing altogether.
Note that if you're copying between machines but excluding platforms/, all installed plugins should be installed into any new platform that's freshly "cordova platform add"ed. What are you actually copying between machines, and what commands are you running?
> Detect changes to plugins and reinstall their source on prepare
> ---------------------------------------------------------------
>
> Key: CB-5127
> URL: https://issues.apache.org/jira/browse/CB-5127
> Project: Apache Cordova
> Issue Type: Improvement
> Components: CLI
> Affects Versions: 3.0.0
> Environment: Windows 7, cordova CLI 3.0.4
> Reporter: Kris Erickson
> Assignee: Braden Shepherdson
> Fix For: 3.2.0
>
>
> Running
> cordova prepare android
> copies the javascript portion of the plugin, but not the Java source on android (haven't yet tested on IOS). Thus when the project is moved between machines the source isn't copied if it isn't retained in the VCS or if the user adds a platform after adding a plugin. My suggestion would be to copy only if the source isn't there in case the user has changed the plugin.
--
This message was sent by Atlassian JIRA
(v6.1#6144)