For the background, I'm experimenting with writing a DSL parser using this great example . Unfortunately, when I adapt this line for use in my application:
Script dslScript = new GroovyShell().parse(dsl.text)
I get class resolution errors at runtime since my DSL domain files have code that refers to other external classes. The contextual application has access to these classes, but I don’t know how to give them access to the new GroovyShell object or, as an alternative, somehow use the contextual application runtime to parse the file.
source
share