Browse Source

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

tags/2021-05-28
Joshua Gerrard 10 years ago
parent
commit
cd67db7478
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h

+ 7
- 6
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_AndroidStudio.h 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


Loading…
Cancel
Save