From c2524b15a2495b581986d07cfb3e63d31fbeb5f1 Mon Sep 17 00:00:00 2001 From: nik Date: Wed, 30 Mar 2016 15:44:59 +0300 Subject: [PATCH] [groovy]: use classloader of Groovy plugin to fix compilation problems in gdsl files --- .../org/jetbrains/plugins/groovy/dsl/GroovyDslExecutor.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/dsl/GroovyDslExecutor.groovy b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/dsl/GroovyDslExecutor.groovy index 5743a2e60388..27202b68cc67 100644 --- a/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/dsl/GroovyDslExecutor.groovy +++ b/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/dsl/GroovyDslExecutor.groovy @@ -146,7 +146,7 @@ abstract class GroovyDslExecutor extends Script implements GdslScopeMethods, Gds public static GroovyDslExecutor createAndRunExecutor(String text, String fileName) { def configuration = new CompilerConfiguration() configuration.scriptBaseClass = GroovyDslExecutor.name - def shell = new GroovyShell(configuration) + def shell = new GroovyShell(GroovyDslExecutor.classLoader, configuration) def script = shell.parse(text, StringUtil.sanitizeJavaIdentifier(fileName)) as GroovyDslExecutor script.fileName = fileName script.run()