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

POM commented on CB-13016:
--------------------------

I found the same bug with my project.

It seems very counterintuitive that run doesn't call build or compile. 

My workaround  was to add the same hook on 2 phases differents (before_compile 
and before_run). I can do so because it's not a problem to apply 2 times the 
same hook but it can't be a solution for all the occurences of this problem.



> Hooks are not fired from "cordova run" command
> ----------------------------------------------
>
>                 Key: CB-13016
>                 URL: https://issues.apache.org/jira/browse/CB-13016
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: 7.0.1
>         Environment: I have only tested it on 7.0.1 using the Command Line 
> Interface, under Linux.
>            Reporter: Alejandro Liu
>
> I have created hooks in config.xml as this:
>     <hook src="scripts/before_prep" type="before_prepare" />
>     <hook src="scripts/after_prep" type="after_prepare" />
>     <hook src="scripts/before_build" type="before_build" />
>     <hook src="scripts/after_build" type="after_build" />
>     <hook src="scripts/before_compile" type="before_compile" />
>     <hook src="scripts/after_compile" type="after_compile" />
> The scripts simply would print 'CORDOVA_HOOK' environment variable.
> If I run: cordova run, that triggers the "build" process but this build 
> process does not call the build or compile hooks.  Only the "prepare" hooks 
> are called.
> I think the build and/or compile hooks should be called.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to