Mercurial Hosting > luan
diff src/luan/tools/WebRun.java @ 59:5c9cadd0acce
move standard calls from CmdLine to LuanState
git-svn-id: https://luan-java.googlecode.com/svn/trunk@60 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 07 Jan 2013 03:36:28 +0000 |
parents | 0c0f2b107099 |
children | f86e4f77ef32 |
line wrap: on
line diff
--- a/src/luan/tools/WebRun.java Mon Jan 07 00:18:35 2013 +0000 +++ b/src/luan/tools/WebRun.java Mon Jan 07 03:36:28 2013 +0000 @@ -18,7 +18,7 @@ private static final Logger logger = LoggerFactory.getLogger(WebRun.class); protected LuanState newLuanState() throws LuanException { - return CmdLine.newStandardLuan(); + return LuanState.newStandard(); } protected void service(HttpServletRequest request,HttpServletResponse response) @@ -35,7 +35,7 @@ luan.out = out; luan.global().put("request",request); luan.global().put("response",response); - CmdLine.eval(luan,code,"WebRun"); + luan.eval(code,"WebRun"); } catch(LuanException e) { logger.error(null,e); response.reset();