You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "JennyGee (JIRA)" <ji...@apache.org> on 2013/11/01 21:26:19 UTC

[jira] [Updated] (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:all-tabpanel ]

JennyGee updated CB-5248:
-------------------------

        Fix Version/s: 3.2.0
    Affects Version/s: 3.1.0

> 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: CLI
>    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)