*** empty log message ***
[mir.git] / source / mir / misc / Helper.java
index bbfb842..7fce85f 100755 (executable)
@@ -17,13 +17,18 @@ public class Helper {
    * rsync the webrepository
    * needs a rsyncscript
    * returns the exit-code
+        * returns 255 if rsync should not be used
    */
   public static int rsync(){
-    Process p;
+               if(!MirConfig.getProp("Rsync").toLowerCase().equals("yes")){
+                       return 255;
+               }
+               
+         Process p;
     int returnValue = -1;
     try {
       Runtime run = Runtime.getRuntime();
-      p = run.exec(Configuration.getProperty("Sync.Script.Path"));
+      p = run.exec(MirConfig.getProp("Rsync.Script.Path"));
       returnValue = p.waitFor();
     } catch (IOException e) {
       return returnValue;
@@ -32,4 +37,4 @@ public class Helper {
     }
     return returnValue;
   }
-}
\ No newline at end of file
+}