[ https://issues.apache.org/jira/browse/CB-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951385#comment-13951385
]
ASF GitHub Bot commented on CB-6338:
------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/cordova-cli/pull/149
> Improve error for missing template
> ----------------------------------
>
> Key: CB-6338
> URL: https://issues.apache.org/jira/browse/CB-6338
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Reporter: Josh Soref
> Assignee: Josh Soref
> Priority: Minor
>
> Today when you try to create a project using a template whose path doesn't exist (typically
due to a typo), you get:
> {quote}
> 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/*
> {quote}
> The * isn't really appropriate, what doesn't exist is the template directory, not "*".
> {quote}
> 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
> {quote}
> If people don't think this should be handled by cli, I can host the code outside it,
but...
--
This message was sent by Atlassian JIRA
(v6.2#6252)
|