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

Fixed paths containing ${user.home} not working in Android Studio

This commit is contained in:
Joshua Gerrard 2015-11-09 17:46:07 +00:00
parent a2b663de67
commit cd67db7478

View file

@ -245,14 +245,15 @@ private:
static String sanitisePath (String path)
{
if (path.startsWith ("~"))
{
const String homeFolder (File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
return expandHomeFolderToken (path).replace ("\\", "\\\\");
}
path = path.replaceSection (0, 1, homeFolder);
}
static String expandHomeFolderToken (const String& path)
{
String homeFolder = File::getSpecialLocation (File::userHomeDirectory).getFullPathName();
return path.replace ("\\", "\\\\");
return path.replace ("${user.home}", homeFolder)
.replace ("~", homeFolder);
}
void writeLocalDotProperties (const File& folder) const