apache / cordova-browser

Apache Cordova
Apache License 2.0
170 stars 85 forks source link

Getting cp: dest is not a directory (too many sources) on copying folders #124

Open shrijeetDeshmukh opened 11 months ago

shrijeetDeshmukh commented 11 months ago

Bug Report

Getting below error message when trying to upgrade cordova-browser to 7 version cp: dest is not a directory (too many sources)

Problem

Hello Team, Folder is not getting copied from plugin folder to platform www folder. Below is the error I'm getting, cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources)

Below are the node modules which needs to copy to the destination but its not working after the upgrade `

    <asset src="www/worklight" target="plugins/cordova-plugin-mfp/worklight" />
    <asset src="src/browser/ibmmfpf.js" target="plugins/cordova-plugin-mfp/worklight/ibmmfpf.js" />
    <asset src="typings" target="plugins/cordova-plugin-mfp/worklight/typings" />
    <asset src="node_modules/express" target="plugins/cordova-plugin-mfp/worklight/node_modules/express" />
    <asset src="node_modules/request" target="plugins/cordova-plugin-mfp/worklight/node_modules/request" />
    <asset src="node_modules/jssha" target="plugins/cordova-plugin-mfp/worklight/node_modules/jssha" />
    <asset src="node_modules/promiz" target="plugins/cordova-plugin-mfp/worklight/node_modules/promiz" />
    <asset src="node_modules/sjcl" target="plugins/cordova-plugin-mfp/worklight/node_modules/sjcl" />
    <asset src="src/browser/proxy.js" target="plugins/cordova-plugin-mfp/worklight/proxy.js" />
</platform>

`

What is expected to happen?

It should copy all the mentioned folders to destination folder

What does actually happen?

Its not copying the folders hence some functionalities are not working in latest browser platform

Information

This issue is probably happening because the cordova-browser 7 now has shelljs version 0.8.5.

Command or Code

Steps to reproduce the issue cordova create helloworld cd helloworld cordova plugin add cordova-plugin-mfp cordova platform add browser@7

Environment, Platform, Device

Installed platforms: browser 7.0.0

Version information

Checklist

shrijeetDeshmukh commented 11 months ago

Any update on this ?