From 1f6e49e791db9727fae7e88385abe202db80ea62 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 6 Aug 2002 12:57:24 +0000 Subject: [PATCH] Fixed bug where serving of static files didn't work on Windows with hopHome property set by using File.getCanonicalFile(). --- src/helma/main/ApplicationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/main/ApplicationManager.java b/src/helma/main/ApplicationManager.java index ce0ae37c..0d553d8f 100644 --- a/src/helma/main/ApplicationManager.java +++ b/src/helma/main/ApplicationManager.java @@ -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());