summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.ant27
1 files changed, 14 insertions, 13 deletions
diff --git a/build.ant b/build.ant
index 0b973df3..609b72e1 100644
--- a/build.ant
+++ b/build.ant
@@ -3,20 +3,21 @@
-->
<project name="rhizi-server" default="pkg-deb">
- <macrodef name="rsync">
- <attribute name="src" />
- <attribute name="dst" />
- <sequential>
- <exec dir="${basedir}" executable="/usr/bin/rsync">
- <arg value="-avz" />
- <arg value="@{src}" />
- <arg value="@{dst}" />
+<macrodef name="rsync">
+ <attribute name="src" />
+ <attribute name="dst" />
+ <attribute name="extraOpts" default="" />
+ <sequential>
+ <exec dir="${basedir}" executable="/usr/bin/rsync" >
+ <arg value="@{src}" />
+ <arg value="@{dst}" />
- <env key="RSYNC_CONNECT_PROG"
- value="ssh root@%H nc 127.0.0.1 873" />
- </exec>
- </sequential>
- </macrodef>
+ <!-- note: RSYNC_CONNECT_PROG has not effect when dst is local dir path -->
+ <env key="RSYNC_CONNECT_PROG"
+ value="ssh root@%H nc 127.0.0.1 873" />
+ </exec>
+ </sequential>
+</macrodef>
<property name="pkg_name" value="rhizi-server" />
<property name="pkg_version" value="0.1.0" />