-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
35 lines (28 loc) · 1.16 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
<project name="root" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
<import file="properties.xml"/>
<target name="init-maven" if="${use.maven}">
<path id="build-path">
<filelist dir=".">
<file name="utils/build.xml"/>
<file name="services/build.xml"/>
<file name="admin/build.xml"/>
<file name="web/build.xml"/>
</filelist>
</path>
</target>
<target name="init-ivy" if="${use.ivy}">
<ivy:buildlist reference="build-path">
<fileset dir="." includes="*/build.xml"/>
</ivy:buildlist>
</target>
<target name="clean" depends="init-ivy" description="Deletes build files">
<delete dir="${artifacts.dir}"/>
<subant target="clean" buildpathref="build-path"/>
</target>
<target name="compileJava" depends="init-ivy" description="Compiles source code">
<subant target="compileJava" buildpathref="build-path"/>
</target>
<target name="build" depends="init-ivy,init-maven" description="Creates distributable">
<subant target="build" buildpathref="build-path"/>
</target>
</project>