-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.xml
84 lines (69 loc) · 2.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<project name="WebApp" default="all">
<property name="targetdir" value="${basedir}/deploy"/>
<property name="tools" value="${basedir}/tools"/>
<property name="plugins" value="${basedir}/plugins"/>
<property name="client" value="${basedir}/client"/>
<property name="server" value="${basedir}/server"/>
<property name="doc" value="${basedir}/doc"/>
<!-- Meta build target -->
<target name="all" depends="tools, server, client"/>
<!-- Clean the entire build system -->
<target name="clean">
<ant dir="${server}" target="clean"/>
<ant dir="${client}" target="clean"/>
<ant dir="${tools}" target="clean"/>
<delete dir="${doc}"/>
<delete dir="${targetdir}"/>
</target>
<!-- Clean the plugin build system -->
<target name="clean-plugins">
<ant dir="${plugins}" target="clean"/>
</target>
<!-- Build the server -->
<target name="server">
<ant dir="${server}" target="all"/>
</target>
<!-- Build the MAPI includes -->
<target name="mapi">
<ant dir="${mapi}" target="all"/>
</target>
<!-- Build the tools -->
<target name="tools">
<ant dir="${tools}" target="all"/>
</target>
<!-- Build the client -->
<target name="client" depends="tools">
<ant dir="${client}" target="all"/>
</target>
<!-- Build the plugins -->
<target name="plugins" depends="tools">
<ant dir="${plugins}" target="all"/>
</target>
<!-- Build documentation -->
<target name="doc" depends="tools">
<ant dir="${client}" target="doc"/>
</target>
<!-- Install all files into the target folder -->
<target name="deploy" depends="tools">
<mkdir dir="${targetdir}"/>
<ant dir="${client}" target="deploy"/>
<ant dir="${server}" target="deploy"/>
<!-- copy files -->
<copy todir="${targetdir}">
<fileset dir=".">
<include name="version"/>
<include name=".htaccess"/>
<include name="*.dist"/>
<include name="*.conf"/>
<include name="*.php"/>
<include name="robots.txt"/>
<exclude name="config.php"/>
<exclude name="debug.php"/>
</fileset>
</copy>
</target>
<!-- Install all plugin files into the target folder -->
<target name="deploy-plugins" depends="tools">
<ant dir="${plugins}" target="deploy"/>
</target>
</project>