[
https://issues.apache.org/jira/browse/CB-6102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911672#comment-13911672
]
Michal commented on CB-6102:
----------------------------
This affects me too. I managed to get over cordova buggy (??) behavior by
modifying their source files.
In my case, for android, in file
/usr/lib/node_modules/cordova/src/metadata/android_parser.js I changed this (at
line 160):
{code:javascript}
// Copy over all app www assets
shell.cp('-rf', path.join(app_www, '*'), this.www_dir());
// Copy over stock platform www assets (cordova.js)
shell.cp('-rf', path.join(platform_www, '*'), this.www_dir());
{code}
to this:
{code:javascript}
// Copy over all app www assets
shell.cp('-rf', path.join(app_www, '*'), this.www_dir());
shell.cp('-rf', path.join(app_www, '.*'), this.www_dir());
// Copy over stock platform www assets (cordova.js)
shell.cp('-rf', path.join(platform_www, '*'), this.www_dir());
shell.cp('-rf', path.join(platform_www, '.*'), this.www_dir());
{code}
I'm not sure if that is the best way to do it, but it works for me.
> Hidden folders are not copied on unix based systems due to change in the way
> node shell.cp is called
> ----------------------------------------------------------------------------------------------------
>
> Key: CB-6102
> URL: https://issues.apache.org/jira/browse/CB-6102
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.1.0, 3.2.0, 3.3.0
> Environment: OSX / Ubuntu with cordova 3.3 and 3.4
> Reporter: Simon Cruise
> Labels: prepare
>
> Hidden directories on unix based systems are prepended with a period
> e.g.
> .sencha
> after running cordova prepare these folders are not copied from the www
> folder into the platform www folder.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)