-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathbuild.xml
30 lines (29 loc) · 1.32 KB
/
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
29
30
<project name="zm-store-conf" default="conf-dist">
<property name="dist.conf.dir" value="build/conf" />
<property name="conf.dir" value="conf" />
<property name="conf.cont.dir" value="${conf.dir}/contacts" />
<property name="conf.msgs.dir" value="${conf.dir}/msgs" />
<property name="conf.common.dir" value="${conf.dir}/common" />
<target name="common-passwords-exists">
<available file="${conf.common.dir}/common-passwords.gz" property="common-passwords.exists" />
</target>
<target name="common-passwords" depends="common-passwords-exists" if="common-passwords.exists">
<delete file="${conf.dir}/common-passwords.txt" />
<untar src="${conf.common.dir}/common-passwords.gz" dest="${conf.dir}/common-passwords.txt" compression="gzip">
<globmapper from="common-passwords.txt" to="*" />
</untar>
</target>
<target name="conf-dist">
<antcall target="common-passwords" />
<copy todir="${dist.conf.dir}" overwrite="true">
<fileset dir="${conf.dir}" includes="*.*" />
</copy>
<copy todir="${dist.conf.dir}/contacts" overwrite="true">
<fileset dir="${conf.cont.dir}" includes="*.xml" />
</copy>
<copy todir="${dist.conf.dir}/msgs" overwrite="true">
<fileset dir="${conf.msgs.dir}" includes="*.properties" />
</copy>
<zip destfile="build/zimbrastoreconf.zip" basedir="${dist.conf.dir}" />
</target>
</project>