From 09b41170fde377105134013efdffa65a49bdfe10 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 19 Jun 2016 23:59:27 +0800 Subject: [PATCH] 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"); } --- .classpath | 2 +- source/net/filebot/cli/ScriptShell.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.classpath b/.classpath index 235e955c..0804f432 100644 --- a/.classpath +++ b/.classpath @@ -19,7 +19,7 @@ - + diff --git a/source/net/filebot/cli/ScriptShell.java b/source/net/filebot/cli/ScriptShell.java index dd0ed4c3..5e27e310 100644 --- a/source/net/filebot/cli/ScriptShell.java +++ b/source/net/filebot/cli/ScriptShell.java @@ -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) {