mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+2
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,5 +35,4 @@ public class MavenWorkspaceSettings {
|
||||
disabledProfiles.clear();
|
||||
disabledProfiles.addAll(profiles);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+4
-3
@@ -56,10 +56,11 @@ public class MavenWorkspaceSettingsComponent implements PersistentStateComponent
|
||||
}
|
||||
|
||||
private static void applyDefaults(MavenWorkspaceSettings settings) {
|
||||
if(StringUtil.isEmptyOrSpaces(settings.generalSettings.getMavenHome())) {
|
||||
if(MavenServerManager.getInstance().isUsedMaven2ForProjectImport() || ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
if (StringUtil.isEmptyOrSpaces(settings.generalSettings.getMavenHome())) {
|
||||
if (MavenServerManager.getInstance().isUsedMaven2ForProjectImport() || ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
settings.generalSettings.setMavenHome(MavenServerManager.BUNDLED_MAVEN_2);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
settings.generalSettings.setMavenHome(MavenServerManager.BUNDLED_MAVEN_3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user