You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "George Campbell (JIRA)" <ji...@apache.org> on 2017/11/29 19:18:01 UTC
[jira] [Commented] (CB-13614) Asset tag create only works if file
is targeted to root directory
[ https://issues.apache.org/jira/browse/CB-13614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271381#comment-16271381 ]
George Campbell commented on CB-13614:
--------------------------------------
instead of:
{{cp -f js/file.js a/new/place/file.js}}
which breaks if a/new/place isn't already created
we need:
{{mkdir -p `dirname a/new/place/file.js` && cp js/file.js a/new/place/file.js}}
on line 123 of browser_handler.js
But that has to be implemented in shelljs
> Asset tag create only works if file is targeted to root directory
> -----------------------------------------------------------------
>
> Key: CB-13614
> URL: https://issues.apache.org/jira/browse/CB-13614
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-browser
> Affects Versions: 5.0.1
> Reporter: George Campbell
> Assignee: Jesse MacFadyen
>
> Inside a plugin.xml file,
> <asset src="www/style/inappbrowser.css" target="style/inappbrowser.css"/>
> results in:
> cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/campbelg/IdeaProjects/wms-circ-app/platforms/browser/platform_www/style/inappbrowser.css
> Related to CB-13562, which fixed the case of an asset file whose target was the root directory. This bug is for assets whose target contains a directory.
> The expected behavior is described by the plugin.xml documentation:
> https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#asset
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org