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

before_build hook does not fire on run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 5.1.1
    • None
    • cordova-cli
    • None

    Description

      Steps to reproduce:

      • Create hooks/before_build/010_test.js. Have it simply output some text to the console.
      • Do:
        cordova build <platform>

        The expected text is present.

      • Do:
        cordova run <platform>

        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:
        cordova build <platform>

        The hook runs, and the app is built.

      • Do:
        cordova run <platform> --nobuild

        The app built in the previous step is deployed to the phone/emulator.

      Attachments

        Activity

          People

            omefire Omar Mefire
            GinkgoFJG Frank J. Gómez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: