cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank J. Gómez (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CB-9434) before_build hook does not fire on run
Date Sun, 16 Aug 2015 23:38:45 GMT

    [ https://issues.apache.org/jira/browse/CB-9434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14698891#comment-14698891
] 

Frank J. Gómez commented on CB-9434:
------------------------------------

Thanks for the explanation. Perhaps some clarification in the docs about how the hooks work,
and in which contexts, would be a good stopgap measure.

> before_build hook does not fire on run
> --------------------------------------
>
>                 Key: CB-9434
>                 URL: https://issues.apache.org/jira/browse/CB-9434
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 5.1.1
>            Reporter: Frank J. Gómez
>            Assignee: Omar Mefire
>            Priority: Minor
>
> Steps to reproduce:
> * Create hooks/before_build/010_test.js. Have it simply output some text to the console.
> * Do: {noformat}cordova build <platform>{noformat} The expected text is present.
> * Do: {noformat}cordova run <platform>{noformat} My expectation is that the text
would be outputted, since "run" is more or less a wrapper around "prepare," "build," and some
other commands. However, the text is not outputted.
> Workaround:
> * Do: {noformat}cordova build <platform>{noformat} The hook runs, and the app is
built.
> * Do: {noformat}cordova run <platform> --nobuild{noformat} The app built in the
previous step is deployed to the phone/emulator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message