You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Darryl Pogue (JIRA)" <ji...@apache.org> on 2018/05/15 04:48:00 UTC

[jira] [Updated] (CB-13397) `cordova build` does not regenerate `platforms` directories

     [ https://issues.apache.org/jira/browse/CB-13397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darryl Pogue updated CB-13397:
------------------------------
    Component/s: cordova-lib

> `cordova build` does not regenerate `platforms` directories
> -----------------------------------------------------------
>
>                 Key: CB-13397
>                 URL: https://issues.apache.org/jira/browse/CB-13397
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>    Affects Versions: 7.0.1
>         Environment: Mac OS X 10.12.6
>            Reporter: Alexander Regueiro
>            Priority: Minor
>
> If the `platforms` directory is deleted from a Cordova project, running `cordova build` fails to restore it from the `config.xml` file, as it should, and instead gives the error message:
> {color:red}Error: No platforms added to this project. Please use `cordova platform add <platform>`.{color}
> Running `cordova prepare` does however correctly restore it. However, since the documentation for `cordova build` clearly indicates that it is equivalent to running `cordova prepare` + `cordova compile`, this should not be the case.
> Note: `cordova build` is able to restore the `plugins` directory without any problems.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org