mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Look into custom script names (for exception stacktraces) but keep as it is for now to avoid unnecessary complexity/magic
e.g. public Class parseClass(String text, String fileName) throws CompilationFailedException { return super.parseClass(text, "amc"); }
This commit is contained in:
parent
ea543491b6
commit
09b41170fd
@ -19,7 +19,7 @@
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/slf4j-api.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/commons-io.jar" sourcepath="lib/ivy/source/commons-io.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/jsoup.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/groovy-all.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/groovy-all.jar" sourcepath="lib/ivy/source/groovy-all.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/slf4j-jdk14.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/hamcrest-core.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jars/ObjCBridge.jar"/>
|
||||
|
@ -57,7 +57,7 @@ public class ScriptShell {
|
||||
return new GroovyScriptEngineImpl(classLoader);
|
||||
}
|
||||
|
||||
public Object evaluate(final String script, final Bindings bindings) throws Throwable {
|
||||
public Object evaluate(String script, Bindings bindings) throws Throwable {
|
||||
try {
|
||||
return engine.eval(script, bindings);
|
||||
} catch (Throwable e) {
|
||||
|
Loading…
Reference in New Issue
Block a user