Browse Source

Surround path with escaped quotes so that Android Studio can open projects on Windows that contain whitespace in the path.

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
eb62e74dc4
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h

+ 7
- 1
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h View File

@@ -64,7 +64,13 @@ public:
const File targetFolder (getTargetFolder());
return androidStudioExecutable.startAsProcess (targetFolder.getFullPathName());
#if JUCE_WINDOWS
// on Windows, we have to surround the path with extra quotes, otherwise Android Studio
// will choke if there are any space characters in the path.
return androidStudioExecutable.startAsProcess ("\"" + targetFolder.getFullPathName() + "\"");
#else
return androidStudioExecutable.startAsProcess(targetFolder.getFullPathName());
#endif
}
void createExporterProperties (PropertyListBuilder& props) override


Loading…
Cancel
Save