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

before_build hook does not fire on run

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 5.1.1
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: