You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/03/24 20:23:01 UTC
[jira] [Commented] (CB-6338) Improve error for missing template
[ https://issues.apache.org/jira/browse/CB-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945572#comment-13945572 ]
ASF GitHub Bot commented on CB-6338:
------------------------------------
GitHub user jsoref opened a pull request:
https://github.com/apache/cordova-cli/pull/149
CB-6338 Improve error for missing template
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jsoref/cordova-cli cb_6338
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-cli/pull/149.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #149
----
commit 2fb730db83bf53b1c82588778065119d8d173227
Author: Josh Soref <js...@blackberry.com>
Date: 2014-03-24T18:30:14Z
CB-6338 Improve error for missing template
----
> 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)