X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fuwobo%2Fsrc%2Fit%2Funibo%2Fcs%2Fhelm%2Fuwobo%2FServer.java;h=293b2b91ba1a1533dfd75d3d61ce280eda551b54;hb=c5c48f3d3515f1dd95657245922ec1f340e17f70;hp=51dbc14c8d1f0ccba476043fcbdc656fa941d1fb;hpb=95a33c4ace2fade7b8349c183313f492dec5f2e5;p=helm.git diff --git a/helm/uwobo/src/it/unibo/cs/helm/uwobo/Server.java b/helm/uwobo/src/it/unibo/cs/helm/uwobo/Server.java index 51dbc14c8..293b2b91b 100644 --- a/helm/uwobo/src/it/unibo/cs/helm/uwobo/Server.java +++ b/helm/uwobo/src/it/unibo/cs/helm/uwobo/Server.java @@ -63,7 +63,6 @@ import org.xml.sax.helpers.*; public class Server { private static class Style implements Serializable { public String fileName; - public long lastModified; public Templates stylesheet; }; @@ -221,11 +220,9 @@ public class Server { Style style = (Style)hashMap.get(key); if (style.fileName.equals(filename)) { String msg = - "Warning: Stylesheet already loaded. Reloading..."; + "Warning: Stylesheet already loaded. Request ignored."; log(msg); - String msg2 = reload(key); - return htmlOfWarning(msg) + - (msg2.equals("") ? "" : "
" + msg2); + return htmlOfWarning(msg); } else { String res = "Error: There is already a stylesheet with keyword \""+ @@ -237,7 +234,6 @@ public class Server { Style style = new Style(); style.fileName = filename; - style.lastModified = new File(filename).lastModified(); String res = compileStylesheet(style,key); log("done!"); @@ -405,7 +401,6 @@ public class Server { Style style = (Style)hashMap.get(key); if (style != null) { log("reloading \"" + key + "\"... "); - style.lastModified = new File(style.fileName).lastModified(); res= compileStylesheet(style,key); log("done!"); } else {