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:
parent
03c157f898
commit
eb62e74dc4
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue