Fix pluggable scripting engine lookup, simplify implementation, and add unit tests.

This commit is contained in:
James Roseborough
2013-07-01 05:51:27 +00:00
parent 56fe850437
commit 9a3f6161ce
7 changed files with 343 additions and 321 deletions

View File

@@ -301,7 +301,7 @@ The standard use of JSR-223 scripting engines may be used:
<pre>
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine e = mgr.getEngineByExtension(".lua");
ScriptEngine e = mgr.getEngineByName("luaj");
e.put("x", 25);
e.eval("y = math.sqrt(x)");
System.out.println( "y="+e.get("y") );
@@ -846,6 +846,7 @@ Files are no longer hosted at LuaForge.
<tr valign="top"><td>&nbsp;&nbsp;<b>3.0-beta1</b></td><td><ul>
<li>Fix bug that didn't read package.path from environment.</li>
<li>Fix pluggable scripting engine lookup, simplify implementation, and add unit tests.</li>
</ul></td></tr>
</table></td></tr></table>