GT-2865: ApplicationIdentifer now removes spaces from application name

and release name.
This commit is contained in:
Ryan Kurtz 2019-05-23 12:22:09 -04:00
parent f9a1652974
commit c5fdf6f9ec
3 changed files with 11 additions and 8 deletions

View file

@ -352,10 +352,11 @@ public class JavaConfig {
}
// Get the java home save file from user home directory (it might not exist yet).
File userSettingsParentDir = new File(userHomeDir, "." + applicationName.toLowerCase());
File userSettingsParentDir =
new File(userHomeDir, "." + applicationName.replaceAll("\\s", "").toLowerCase());
String userSettingsDirName = userSettingsParentDir.getName() + "_" + applicationVersion +
"_" + applicationReleaseName.toUpperCase();
"_" + applicationReleaseName.replaceAll("\\s", "").toUpperCase();
if (isDev) {
userSettingsDirName += "_location_" + installDir.getParentFile().getName();