[ https://issues.apache.org/jira/browse/CB-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949986#comment-13949986
]
ASF subversion and git services commented on CB-6338:
-----------------------------------------------------
Commit da34130e063da5d4e4c5ab96cb75d1e47e3a7581 in cordova-cli's branch refs/heads/master
from [~jsoref]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=da34130 ]
CB-6338 Improve error for missing template
Fix create test to properly lie about lib/dir
> 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)
|