[groovy]: use classloader of Groovy plugin to fix compilation problems in gdsl files

This commit is contained in:
nik
2016-03-30 15:45:28 +03:00
parent aa08b31bce
commit c2524b15a2
@@ -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()