Fixed bug where serving of static files didn't work on Windows with hopHome

property set by using File.getCanonicalFile().
This commit is contained in:
hns 2002-08-06 12:57:24 +00:00
parent a097a07937
commit 1f6e49e791

View file

@ -182,7 +182,7 @@ public class ApplicationManager {
}
if (server.http != null) {
// add handler for static files.
File staticContent = new File (server.getHopHome(), "static");
File staticContent = new File (server.getHopHome(), "static").getCanonicalFile();
Server.getLogger().log("Serving static content from "+staticContent.getAbsolutePath());
HandlerContext context = server.http.addContext ("/static/*");
context.setResourceBase (staticContent.getAbsolutePath());