projects
/
mir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[mir.git]
/
source
/
mir
/
misc
/
Helper.java
diff --git
a/source/mir/misc/Helper.java
b/source/mir/misc/Helper.java
index
bbfb842
..
7fce85f
100755
(executable)
--- a/
source/mir/misc/Helper.java
+++ b/
source/mir/misc/Helper.java
@@
-17,13
+17,18
@@
public class Helper {
* rsync the webrepository
* needs a rsyncscript
* returns the exit-code
* rsync the webrepository
* needs a rsyncscript
* returns the exit-code
+ * returns 255 if rsync should not be used
*/
public static int rsync(){
*/
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();
int returnValue = -1;
try {
Runtime run = Runtime.getRuntime();
- p = run.exec(
Configuration.getProperty("S
ync.Script.Path"));
+ p = run.exec(
MirConfig.getProp("Rs
ync.Script.Path"));
returnValue = p.waitFor();
} catch (IOException e) {
return returnValue;
returnValue = p.waitFor();
} catch (IOException e) {
return returnValue;
@@
-32,4
+37,4
@@
public class Helper {
}
return returnValue;
}
}
return returnValue;
}
-}
\ No newline at end of file
+}