Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13016

Hooks are not fired from "cordova run" command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.0.1
    • None
    • cordova-cli
    • None
    • I have only tested it on 7.0.1 using the Command Line Interface, under Linux.

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alejandro_liu Alejandro Liu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: