mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
WEB-6724 Installation home of a previous WebStorm version is not accepted during start-up settings import
This commit is contained in:
@@ -273,7 +273,7 @@ public class ConfigImportHelper {
|
||||
|
||||
|
||||
// other binary scripts
|
||||
final String executableName = StringUtil.toLowerCase(settings.getProductName(ThreeState.NO));
|
||||
final String executableName = StringUtil.toLowerCase(settings.getExecutableName());
|
||||
// * defaults:
|
||||
addLaunchExecutableScriptsCandidates(files, executableName, bin);
|
||||
// * customized files:
|
||||
@@ -414,7 +414,7 @@ public class ConfigImportHelper {
|
||||
if (new File(installationHome, OPTIONS_XML).exists()) return true;
|
||||
if (new File(installationHome, CONFIG_RELATED_PATH + OPTIONS_XML).exists()) return true;
|
||||
|
||||
String mainJarName = StringUtil.toLowerCase(settings.getProductName(ThreeState.NO)) + ".jar";
|
||||
String mainJarName = StringUtil.toLowerCase(settings.getMainJarName()) + ".jar";
|
||||
//noinspection HardCodedStringLiteral
|
||||
boolean quickTest = new File(new File(installationHome, "lib"), mainJarName).exists() &&
|
||||
new File(installationHome, BIN_FOLDER).exists();
|
||||
|
||||
@@ -30,6 +30,14 @@ import java.util.List;
|
||||
*/
|
||||
public class ConfigImportSettings {
|
||||
|
||||
public String getExecutableName() {
|
||||
return getProductName(ThreeState.NO);
|
||||
}
|
||||
|
||||
public String getMainJarName() {
|
||||
return getProductName(ThreeState.NO);
|
||||
}
|
||||
|
||||
protected String getProductName(ThreeState full) {
|
||||
ApplicationNamesInfo namesInfo = ApplicationNamesInfo.getInstance();
|
||||
if (full == ThreeState.YES) {
|
||||
|
||||
Reference in New Issue
Block a user