Skip to content

Commit

Permalink
choose JVM for build process in predictable way if there are several …
Browse files Browse the repository at this point in the history
…JDK of same version in the project
  • Loading branch information
chashnikov committed Aug 28, 2015
1 parent 075cf52 commit 42cef13
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -913,7 +913,7 @@ public static Pair<Sdk, JavaSdkVersion> getBuildProcessRuntimeSdk(Project projec
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);
Expand Down

0 comments on commit 42cef13

Please sign in to comment.