You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Tommy-Carlos Williams (JIRA)" <ji...@apache.org> on 2013/01/25 01:19:13 UTC
[jira] [Created] (CB-2294) CLI platform add does not replace
template www contents with project www contents
Tommy-Carlos Williams created CB-2294:
-----------------------------------------
Summary: 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