From b7d5c296b5fb709fdb3e5023ed97ecaf4741f33d Mon Sep 17 00:00:00 2001 From: Dany Date: Tue, 23 Jun 2015 15:47:13 +0300 Subject: [PATCH] IDEA-141098 Enable Groovy Shell for modules with complete distribution only --- .../plugins/groovy/shell/DefaultGroovyShellRunner.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java index 86386b752a72..9654e6dc3b6a 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java @@ -69,9 +69,8 @@ public class DefaultGroovyShellRunner extends GroovyShellConfig { public static boolean hasGroovyWithNeededJars(Module module) { GlobalSearchScope scope = GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module); JavaPsiFacade facade = JavaPsiFacade.getInstance(module.getProject()); - return (facade.findClass("org.apache.commons.cli.CommandLineParser", scope) != null || - facade.findClass("groovyjarjarcommonscli.CommandLineParser", scope) != null) && - facade.findClass("groovy.ui.GroovyMain", scope) != null && + return facade.findClass("org.apache.commons.cli.CommandLineParser", scope) != null && + facade.findClass("org.codehaus.groovy.tools.shell.Main", scope) != null && facade.findClass("org.fusesource.jansi.AnsiConsole", scope) != null; }