--- /dev/null
+package mir.misc;
+
+import java.io.IOException;
+
+/**
+ * Title: Indy
+ * Description: This class provides some satic help methods
+ * Copyright: Copyright (c) 2001
+ * Company: indymedia.de
+ * @author idfx
+ * @version 1.0
+ */
+
+public class Helper {
+
+ /**
+ * rsync the webrepository
+ * needs a rsyncscript
+ * returns the exit-code
+ */
+ public static int rsync(){
+ Process p;
+ int returnValue = -1;
+ try {
+ Runtime run = Runtime.getRuntime();
+ p = run.exec(Configuration.getProperty("Sync.Script.Path"));
+ returnValue = p.waitFor();
+ } catch (IOException e) {
+ return returnValue;
+ } catch (InterruptedException e) {
+ return returnValue;
+ }
+ return returnValue;
+ }
+}
\ No newline at end of file