You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Josh Soref (JIRA)" <ji...@apache.org> on 2013/11/04 20:40:18 UTC

[jira] [Commented] (CB-5248) Adding additional arguments for 'cordova create' will break your project

    [ https://issues.apache.org/jira/browse/CB-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813154#comment-13813154 ] 

Josh Soref commented on CB-5248:
--------------------------------

This is because of code that [~kamrik] landed for CB-4748...

> Adding additional arguments for 'cordova create' will break your project
> ------------------------------------------------------------------------
>
>                 Key: CB-5248
>                 URL: https://issues.apache.org/jira/browse/CB-5248
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: BlackBerry
>    Affects Versions: 3.1.0
>            Reporter: JennyGee
>            Priority: Minor
>             Fix For: 3.2.0
>
>
> According to the help docs cordova has the following for create:
> create <PATH> [ID] [NAME] where ID and NAME are optional.
> When you add an additional parameter after NAME, you get a error stating that it doesn't understand the last parameter. On the other hand the cordova project appears to be created properly. But when you have a look at the actual project, it's actually broken:
> myMachine:cordovaTest jgee$ cordova create newDir newPackage app1 app2
> Creating a new cordova project with name "app1" and id "newPackage" at location "../cordovaTest/newDir"
> [TypeError: Object.keys called on non-object]
> myMachine:cordovaTest jgee$ cd newDir/
> ci0000003068684:newDir jgee$ ls
> merges		platforms	plugins		www
> myMachine:newDir jgee$ cordova info
> { [Error: ENOENT, no such file or directory '..cordovaTest/newDir/www/config.xml']
>   errno: 34,
>   code: 'ENOENT',
>   path: '..cordova/newDir/www/config.xml',
>   syscall: 'open' }



--
This message was sent by Atlassian JIRA
(v6.1#6144)