Mercurial Hosting > luan
diff web/src/luan/modules/web/Web_server.luan @ 258:4dfa86dbca45
rename "java:" to "classpath:"
git-svn-id: https://luan-java.googlecode.com/svn/trunk@259 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 28 Oct 2014 20:38:04 +0000 |
parents | 2b6f51d7af40 |
children | f1f7d8c7e94e |
line wrap: on
line diff
--- a/web/src/luan/modules/web/Web_server.luan Tue Oct 28 03:05:37 2014 +0000 +++ b/web/src/luan/modules/web/Web_server.luan Tue Oct 28 20:38:04 2014 +0000 @@ -73,10 +73,10 @@ function serve(dir) dir = dir.gsub("/$","") -- remove trailing '/' if any Http.dir = dir - Package.path = dir .. "?.luan;java:luan/modules/?.luan" + Package.path = dir .. "?.luan;classpath:luan/modules/?.luan" authentication_handler.setPassword(private_password) local base = dir - if base.match("^java:") ~= nil then + if base.match("^classpath:") ~= nil then base = dir.."#"..welcome_file.."#"..welcome_file..".luan" end resource_handler.setResourceBase(Io.File(base).to_string())