L2J_GeoDriver, java-engine-1.8 and mmocore libraries are dropped and directly integrated to project under "com.l2jserver.commons".

This commit is contained in:
mobius
2015-01-26 00:20:05 +00:00
parent 56db1f21cf
commit c1dc90a6e0
54 changed files with 3801 additions and 168 deletions

View File

@ -23,8 +23,6 @@ import java.util.logging.Logger;
import javax.script.ScriptContext;
import com.l2jserver.gameserver.scripting.L2ScriptEngineManager;
public class Expression
{
protected static final Logger _log = Logger.getLogger(Expression.class.getName());
@ -34,32 +32,6 @@ public class Expression
@SuppressWarnings("unused")
private final String _code;
public static Object eval(String lang, String code)
{
try
{
return L2ScriptEngineManager.getInstance().eval(lang, code);
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
return null;
}
}
public static Object eval(ScriptContext context, String lang, String code)
{
try
{
return L2ScriptEngineManager.getInstance().eval(lang, code, context);
}
catch (Exception e)
{
_log.log(Level.WARNING, "", e);
return null;
}
}
public static Expression create(ScriptContext context, String lang, String code)
{
try