[ https://issues.apache.org/jira/browse/CB-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-2294. --------------------------- Resolution: Fixed Fixed in https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;a=commit;h=ff34f5dbfb800078c291c4b99c95d3169f6ab819 The fix applies the patch to Android, iOS and BlackBerry projects. > CLI platform add does not replace template www contents with project www > contents > --------------------------------------------------------------------------------- > > Key: CB-2294 > URL: https://issues.apache.org/jira/browse/CB-2294 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 2.3.0 > Environment: Mac OS X 10.8.2 > Reporter: Tommy-Carlos Williams > Assignee: Filip Maj > > When adding a platform to an existing Cordova project created with the CLI, > the platform's www folder is updated with the contents of the project's www > folder, but any files from the template version not present in the project > version are not removed. > This means that if you have a different file structure than the default www > template for a given platform, then files/folders not part of your project > will still be in your platform www folder. > Example index.js below: > Banky:SpiderOakMobileClient tommy$ ls -l ./www/js > total 24 > -rw-r--r-- 1 tommy staff 49 17 Jan 17:15 README.md > -rw-r--r-- 1 tommy staff 7102 24 Jan 23:23 SpiderOakMobile.js > Banky:SpiderOakMobileClient tommy$ ls -l platforms/ios/www/js > total 32 > -rw-r--r-- 1 tommy staff 49 25 Jan 11:08 README.md > -rw-r--r-- 1 tommy staff 7102 25 Jan 11:08 SpiderOakMobile.js > -rw-r--r-- 1 tommy staff 1914 25 Jan 11:08 index.js -- 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