cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Homer (JIRA)" <>
Subject [jira] [Assigned] (CB-10654) _platform_add hooks not executed when platform added from repo or directory
Date Fri, 19 Feb 2016 21:56:18 GMT


Tony Homer reassigned CB-10654:

    Assignee: Tony Homer

> _platform_add hooks not executed when platform added from repo or directory
> ---------------------------------------------------------------------------
>                 Key: CB-10654
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: Master
>            Reporter: Tony Homer
>            Assignee: Tony Homer
> before_platform_add and after_platform_add hooks are not executed when platforms are
added from directory or repo.  This is because the matching logic in platform.js depends on
the targets specified in command line arguments.
> It seems that the matching logic should be deferred until the platform can be determined
via getPlatformDetailsFromDir.
> This would require that the before_platform_add hook not be executed until after the
platform has been downloaded.
> Steps to reproduce
> # create a project with hooks for before_platform_add and/or after_platform_add
> # add platform from repo or local dir, e.g.
> {code}
> cordova platform add
> cordova platform add my-local-copy-of-cordova-android
> {code}
> # hooks do not get executed

This message was sent by Atlassian JIRA

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

View raw message