[
https://issues.apache.org/jira/browse/CB-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800921#comment-13800921
]
ASF subversion and git services commented on CB-4748:
-----------------------------------------------------
Commit 51306462e1e3bfc7bdf90e4d53c49b486a4a26c2 in branch refs/heads/master
from [~kamrik]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=5130646 ]
CB-4748: Fail quickly if dir passed to cordova create is not empty.
Some upstream tools (e.g. mca) need to pass extra configuration to
cordova create. In order to avoid pre-creating .cordova/config.json file
for this, an extra parameter is added to cordova.create(), it should be
an object with the same structure as config.json.
If id or name are given in the extra config, they will be used only if
the value given as the function parameter is falsy:
id = id || cfg.id || DEFAULT_ID
> `cordova create` should fail fast when directory already exists
> ---------------------------------------------------------------
>
> Key: CB-4748
> URL: https://issues.apache.org/jira/browse/CB-4748
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.0.0
> Reporter: Andrew Grieve
> Assignee: Mark Koudritsky
> Priority: Minor
>
> Running "cordova create" twice with the same args results in:
> {code}
> $ cordova create CordovaAppHarness org.apache.appharness CordovaAppHarness
> $ cordova create CordovaAppHarness org.apache.appharness
> {code}
> {code}
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_build
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_compile
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_docs
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_emulate
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_platform_add
> mkdir: path already exists:
> /Users/agrieve/git/cordova/cordova-app-harness/CordovaAppHarness/.cordova/hooks/after_platform_rm
> ...
> {code}
> The second run should just fail with an error message.
--
This message was sent by Atlassian JIRA
(v6.1#6144)