Class ScriptShell
java.lang.Object
de.luckymcdev.foundryengine.common.script.ScriptShell
Global Groovy script shell for compiling bundle scripts.
Shares a single
GroovyClassLoader and CompilerConfiguration
across all bundles. Script roots are registered as URLs on the class loader
so that cross-script imports resolve correctly both within and between bundles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.codehaus.groovy.tools.GroovyClass> compileBundle(List<Path> scriptPaths, Path scriptRoot) org.codehaus.groovy.control.CompilerConfigurationvoid
-
Constructor Details
-
ScriptShell
public ScriptShell()
-
-
Method Details
-
compileBundle
public List<org.codehaus.groovy.tools.GroovyClass> compileBundle(List<Path> scriptPaths, Path scriptRoot) throws IOException - Throws:
IOException
-
invalidateAll
public void invalidateAll() -
getCompilerConfiguration
public org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration()
-