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

Improve error for missing template

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None

      Description

      Today when you try to create a project using a template whose path doesn't exist (typically due to a typo), you get:

      cordova create /tmp/xxxq a a '{"id":"id","name":"name","lib":{"www":{"uri":"/tmp/xxqrtc","id":"custom","version":"0"}}}'
      Creating a new cordova project with name "a" and id "a" at location "/tmp/xxxq"
      Using custom www assets from /tmp/xxqrtc
      cp: no such file or directory: /tmp/xxqrtc/*

      The * isn't really appropriate, what doesn't exist is the template directory, not "*".

      cordova create /tmp/xxxq a a '{"id":"id","name":"name","lib":{"www":{"uri":"/tmp/xxqrtc","id":"custom","version":"0"}}}'
      Creating a new cordova project with name "a" and id "a" at location "/tmp/xxxq"
      Using custom www assets from /tmp/xxqrtc
      Could not find directory: /tmp/xxqrtc

      If people don't think this should be handled by cli, I can host the code outside it, but...

        Attachments

          Activity

            People

            • Assignee:
              jsoref Josh Soref
              Reporter:
              jsoref Josh Soref
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: