CLI - cordova prepare is not copying files to my specific platforms

626 views
Skip to first unread message

dinglemouse

unread,
Oct 21, 2013, 7:34:41 PM10/21/13
to phon...@googlegroups.com
I am using cordova 3.1

I use CLI to create a simple helloworld CLI project (as per online guide), and then cordova add platform android

At the top level of this CLI project I create some "common" files in www/css www/js etc.

Then using CLI cordova prepare android I can see my common files are copied to my platforms/android/assets/www subfolders as expected.

Everything is good :-)

BUT

I have another more substantial CLI project with lots of code and many plugins which I have added/removed etc and for some reason in this bigger project the cordova prepare is NOT copying my common files into the specific platforms. The cordova prepare runs successfully and reports all plugins good to go - there are no errors. It just does NOT copy any files :-( Using the -d flag does not tell me anything useful. It is as though there was nothing to copy at all...

My question is what could have gone wrong? Have I accidentally broken some internal file that the preapre needs? Where exactly is this copy logic of prepare? I wish to avoid re-creating the project again from scratch because of the amount of work involved.

TIA,
DM.

dinglemouse

unread,
Oct 22, 2013, 12:27:32 AM10/22/13
to phon...@googlegroups.com
Identified the problem was due to my project structure not being what cordova prepare was expecting.
Ref: https://issues.apache.org/jira/browse/CB-5143
Reply all
Reply to author
Forward
0 new messages