1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Revert "Projucer: Check if IDE project file exists when saving"

This reverts commit a71bda9adb.
This commit is contained in:
reuk 2021-12-14 11:59:08 +00:00
parent 7984458a8e
commit 6d711a2312
6 changed files with 11 additions and 34 deletions

View file

@ -141,7 +141,7 @@ public:
gradleVersion (settings, Ids::gradleVersion, getUndoManager(), "7.0.2"),
gradleToolchain (settings, Ids::gradleToolchain, getUndoManager(), "clang"),
androidPluginVersion (settings, Ids::androidPluginVersion, getUndoManager(), "7.0.0"),
androidExecutable (getAppSettings().getStoredPath (Ids::androidStudioExePath, TargetOS::getThisOS()).get().toString())
AndroidExecutable (getAppSettings().getStoredPath (Ids::androidStudioExePath, TargetOS::getThisOS()).get().toString())
{
name = getDisplayName();
targetLocationValue.setDefault (getDefaultBuildsRootFolder() + getTargetFolderName());
@ -165,25 +165,22 @@ public:
//==============================================================================
bool canLaunchProject() override
{
return androidExecutable.exists();
return AndroidExecutable.exists();
}
bool launchProject() override
{
if (! androidExecutable.exists())
if (! AndroidExecutable.exists())
{
jassertfalse;
return false;
}
auto targetFolder = getTargetFolder();
// we have to surround the path with extra quotes, otherwise Android Studio
// will choke if there are any space characters in the path.
return androidExecutable.startAsProcess (getIDEProjectFile().getFullPathName().quoted());
}
File getIDEProjectFile() const override
{
return getTargetFolder();
return AndroidExecutable.startAsProcess ("\"" + targetFolder.getFullPathName() + "\"");
}
//==============================================================================
@ -1877,7 +1874,7 @@ private:
}
//==============================================================================
const File androidExecutable;
const File AndroidExecutable;
JUCE_DECLARE_NON_COPYABLE (AndroidProjectExporter)
};