mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy]: use classloader of Groovy plugin to fix compilation problems in gdsl files
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user