]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/uwobo/src/it/unibo/cs/helm/uwobo/Server.java
...
[helm.git] / helm / uwobo / src / it / unibo / cs / helm / uwobo / Server.java
index 51dbc14c8d1f0ccba476043fcbdc656fa941d1fb..293b2b91ba1a1533dfd75d3d61ce280eda551b54 100644 (file)
@@ -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("") ? "" : "<br />" + 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 {