-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
28 lines (23 loc) · 965 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<project name="DynBind" default="deploy" basedir=".">
<property file="build.properties" />
<property name="rsync.exclude-from" value=".gitignore" />
<description>
DynBind script
</description>
<target name="assert-vcs-clean">
<exec executable="git" failonerror="true">
<arg line="status --porcelain" />
</exec>
</target>
<target name="deploy-source" depends="assert-vcs-clean">
<exec dir="." executable="ssh" failonerror="true"> <!-- Hack for file rights -->
<arg line="${remote.user}@${remote.host} 'chmod -R 777 ${remote.path}'" />
</exec>
<exec dir="." executable="rsync" failonerror="true">
<arg line=" --omit-dir-times -rlzv --no-p --no-o --no-g --exclude '.git' --exclude-from ${rsync.exclude-from} -e ssh . ${remote.user}@${remote.host}:${remote.path}" />
</exec>
</target>
<target name="deploy" depends="deploy-source">
</target>
</project>