1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

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

This commit is contained in:
Timur Doumler 2015-12-14 15:14:49 +00:00
parent 03c157f898
commit eb62e74dc4

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