cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-4789) cordova tool should recognize when platforms/$plat directory is deleted
Date Fri, 16 Jan 2015 14:59:35 GMT


ASF subversion and git services commented on CB-4789:

Commit 36ffb18d97f420d519bf46b83ad5048343b8f6c4 in cordova-lib's branch refs/heads/master
from [~agrieve]
[;h=36ffb18 ]

CB-4789 refactor: Remove config_changes.get/set_platform_json in favour of PlatformJson

Addresses longstanding TODO and makes us one step closer to being able
to change the location of the platform.json files to be within their
respective platforms

> cordova tool should recognize when platforms/$plat directory is deleted
> -----------------------------------------------------------------------
>                 Key: CB-4789
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: Mac OSX 10.8.4, Cordova CLI 3.0.9, Xcode build tools 4.6.3 (also
tried Xcode 5.0 build tools).
>            Reporter: Owen
>            Priority: Minor
> Steps:
> {code}
> cordova create Project Project
> cd Project
> cordova platform add ios
> cordova plugin add ...
> rm -rf platforms/ios
> cordova platform add ios
> {code}
> This leaves you in a bad state where things work, but plugins are not re-installed by
platform add.
> Maybe as a fix we should have some precondition checks before running commands. E.g.
validate that our cached state-of-the-world matches reality. In this specific case, the `platform
add ios` should first detect that ios was deleted and internally run `platform rm ios` first.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message