Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13614

Asset tag create only works if file is targeted to root directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: None
    • Component/s: cordova-browser
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                purplecabbage Jesse MacFadyen
                Reporter:
                geocolumbus George Campbell
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: