Groovy scripts are placed in a Database entry (data type BLOB). I can read the bytes and convert to a String object. How can I use GroovyClassLoader or GroovyScriptEngine to compile and execute the script? I need to track dependencies between scripts so that if any dependent script is modified, the whole tree will be recompiled and reloaded.
Share
Say you take the text to string
scriptAsStringPerhaps you should store the script(s) as bytecode so you can use them with
classLoaderand make sure dependent scripts are up-to-date.