Author: toad
Date: 2006-06-02 21:40:26 +0000 (Fri, 02 Jun 2006)
New Revision: 9010

Modified:
   trunk/freenet/src/freenet/node/updater/NodeUpdater.java
Log:
more back compat

Modified: trunk/freenet/src/freenet/node/updater/NodeUpdater.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/NodeUpdater.java     2006-06-02 
21:31:04 UTC (rev 9009)
+++ trunk/freenet/src/freenet/node/updater/NodeUpdater.java     2006-06-02 
21:40:26 UTC (rev 9010)
@@ -211,9 +211,19 @@
                                        fRunning = fNew;
                                        fNew = fRunning;
                                } else {
-                                       Logger.error(this, "Cannot restart on 
Windows due to non-standard config file!");
-                                       System.err.println("Cannot restart on 
Windows due to non-standard config file!");
-                                       return;
+                                       cp1 = 
p.getProperty("wrapper.java.classpath.2");
+                                       
if(cp1.equals("freenet-cvs-snapshot.jar")) {
+                                               // Cool!
+                                       } else 
if(cp1.equals("freenet-cvs-snapshot.jar.new")) {
+                                               // Swapped; we are running .new
+                                               File tmp = fRunning;
+                                               fRunning = fNew;
+                                               fNew = fRunning;
+                                       } else {                                
        
+                                               Logger.error(this, "Cannot 
restart on Windows due to non-standard config file!");
+                                               System.err.println("Cannot 
restart on Windows due to non-standard config file!");
+                                               return;
+                                       }
                                }
                        }



Reply via email to