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

Filip Maj resolved CB-3929.
---------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
    
> Missing options for hooks: before_prepare and after_prepare
> -----------------------------------------------------------
>
>                 Key: CB-3929
>                 URL: https://issues.apache.org/jira/browse/CB-3929
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.8.0
>         Environment: cordova-cli 2.8.19
>            Reporter: Michael Brooks
>            Assignee: Filip Maj
>             Fix For: 2.9.0
>
>
> Tested on Cordova {{2.8.19}}.
> The hooks {{before_prepare}} and {{after_prepare}} [intend to pass the 
> following options 
> data|https://github.com/apache/cordova-cli/blob/master2/src/prepare.js#L65-L79]:
> {code}
>     { platforms: [....] }
> {code}
> However, the hooks do not fire with the above data. Instead, the data object 
> is the {{process}} object.
> Examples:
> {code}
>     cordova.on('before_prepare', function(data, done) {
>         console.log(data.platforms);  // undefined
>         done();
>     });
>     cordova.on('after_prepare', function(data, done) {
>         console.log(data.platforms);  // undefined
>         done();
>     });
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to