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

cordova prepare uses www/config.xml from parent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 6.0.0
    • None
    • None

    Description

      If you run "cordova prepare" from your project's root, but the parent directory has a www/config.xml file, it will try to use that file instead, and fail.

      Create a cordova project in /home/username/CordovaTest. Add to /home/username/CordovaTest/config.xml:

          <engine name="ios" spec="~4.1.0" />
          <engine name="android" spec="~5.1.1" />
      

      Then create an empty /home/username/www/config.xml file.

      Finally run:

      cd /home/username/CordovaTest
      cordova prepare
      

      You'll get an error, as it tries to read the parent directory's config file.

      Attachments

        1. sample.zip
          30 kB
          Jacob Weber

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            jweber Jacob Weber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: