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.