[ 
https://issues.apache.org/jira/browse/CB-6512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059270#comment-14059270
 ] 

ASF subversion and git services commented on CB-6512:
-----------------------------------------------------

Commit 3695d6fef8998929189a36681bbe1f99c13f7887 in cordova-lib's branch 
refs/heads/master from [~kamrik]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=3695d6f ]

CB-6512: platform add <path> was using wrong www/cordova.js

cordova prepare nukes the www dir under platform on each prepare, so it was
using www/cordova.js from the cached platfrom files to restore it. For this to
work, prepare was starting with a lazy_load(platform) to make sure it has the
platform files cached.

For the case of platform add <path> this was downloading a stock version of
platform files instead of using the ones in <path>.

Some time ago see CB-5063 cordova started keeping a copy of cordova.js under
/platfroms/<platfrom>/platfrom_www/ but the cached files were still needed for
older projects that didn't yet have platform_www.

This commit removes the lazy_load before prepare and counts on platform_www to
exist. It also adds platform_www during `platform add`.


> Support adding platforms by local path and/or git url
> -----------------------------------------------------
>
>                 Key: CB-6512
>                 URL: https://issues.apache.org/jira/browse/CB-6512
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>            Reporter: Michal Mocny
>            Assignee: Mark Koudritsky
>            Priority: Minor
>
> You can add local development versions of plugins with "cordova plugin add 
> ~/path/to/plugin", but you cannot do that for platforms.  We should fix that.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to