choose JVM for build process in predictable way if there are several JDK of same version in the project

This commit is contained in:
nik
2015-08-28 11:24:13 +03:00
parent 075cf5282f
commit 42cef133ad
@@ -913,7 +913,7 @@ public class BuildManager implements Disposable {
int sdkMinorVersion = 0;
JavaSdkVersion sdkVersion = null;
final Set<Sdk> candidates = new HashSet<Sdk>();
final Set<Sdk> candidates = new LinkedHashSet<Sdk>();
final Sdk defaultSdk = ProjectRootManager.getInstance(project).getProjectSdk();
if (defaultSdk != null && defaultSdk.getSdkType() instanceof JavaSdkType) {
candidates.add(defaultSdk);