apache / cordova-mobile-spec

Apache Cordova mobile-spec
Apache License 2.0
66 stars 107 forks source link

Mobile-spec on windows doesn't create project when there are spaces in the path #156

Open janpio opened 5 years ago

janpio commented 5 years ago

Reported by @surajpindoria at https://issues.apache.org/jira/browse/CB-9364

brodycj commented 5 years ago

Sounds like a quirk. I can try it if I get a chance to try mobilespec on Windows platform.

@janpio it is not clear to me if you already reproduced this reported quirk or not, labeling as a question for now.

janpio commented 5 years ago

I did not, would have added the bug label if I had. I consider issues "untriaged" as long as there are no labels specifying the type of issue. But question is fine as well.

janpio commented 5 years ago
  copy  www/splashscreens/android-port-hdpi.png platforms\android\app\src\main\res\drawable-port-hdpi\screen.png (updated file)
  copy  www/splashscreens/android-port-xhdpi.png platforms\android\app\src\main\res\drawable-port-xhdpi\screen.png (updated file)
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
Saving android@8.0.0 into platforms.json
No scripts found for hook "after_platform_add".
### Skipping the js update.
### Adding plugins using CLI...
Searchpath:
Installing local test framework plugins...
$ cordova plugin add E:\Projects\Cordova\coho checkouts 2\cordova-mobile-spec\cordova-plugin-echo
npm: Command failed with exit code 1 Error output:
npm ERR! Invalid package.json

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jan\AppData\Roaming\npm-cache\_logs\2019-05-24T23_49_30_367Z-debug.log

E:\Projects\Cordova\coho checkouts 2

Simple reason is that cordova plugin add E:\Projects\Cordova\coho checkouts 2\cordova-mobile-spec\cordova-plugin-echo just needs quoting of the path.