-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
82 lines (74 loc) · 3.06 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Top-level ant build file for ABRAID-MP.
Copyright (c) 2014 University of Oxford
-->
<project name="abraid-mp" default="build">
<property name="code.root" value="${basedir}/src"/>
<property name="python.root" value="${basedir}/python/src"/>
<property name="db.root" value="${basedir}/db"/>
<property name="artifacts.dir" value="${basedir}/artifacts" />
<target name="build" description="build everything">
<ant antfile="${code.root}/build.xml" inheritrefs="false" inheritall="false" target="build" dir="${code.root}"/>
</target>
<target name="clean" description="cleanup everything">
<ant antfile="${code.root}/build.xml" inheritrefs="false" inheritall="false" target="clean" dir="${code.root}"/>
</target>
<target name="test" description="test everything">
<ant antfile="${code.root}/build.xml" inheritrefs="false" inheritall="false" target="test" dir="${code.root}"/>
</target>
<target name="create.database" description="creates the database">
<ant antfile="${db.root}/build.xml" inheritrefs="false" inheritall="false" target="create.database" dir="${db.root}"/>
</target>
<target name="create.test.database" description="creates the database with test data">
<ant antfile="${db.root}/build.xml" inheritrefs="false" inheritall="false" target="create.test.database" dir="${db.root}"/>
</target>
<target name="full.src">
<ant antfile="${code.root}/build.xml" inheritrefs="false" inheritall="false" target="full" dir="${code.root}"/>
</target>
<target name="full" depends="create.test.database, full.src, collate.artifacts" description="Build pipeline" />
<target name="collate.artifacts">
<delete dir="${artifacts.dir}"/>
<mkdir dir="${artifacts.dir}"/>
<copy todir="${artifacts.dir}">
<fileset dir="${code.root}/ModelWrapper/out/artifacts/">
<include name="*.war" />
</fileset>
</copy>
<copy todir="${artifacts.dir}">
<fileset dir="${code.root}/PublicSite/out/artifacts/">
<include name="*.war" />
</fileset>
</copy>
<copy todir="${artifacts.dir}">
<fileset dir="${code.root}/ModelOutputHandler/out/artifacts/">
<include name="*.war" />
</fileset>
</copy>
<mkdir dir="${artifacts.dir}/DataManager"/>
<copy todir="${artifacts.dir}/DataManager">
<fileset dir="${code.root}/DataManager/out/artifacts/">
<include name="**/*" />
</fileset>
</copy>
<mkdir dir="${artifacts.dir}/Database"/>
<copy todir="${artifacts.dir}/Database">
<fileset dir="${db.root}">
<include name="**/*" />
</fileset>
</copy>
<mkdir dir="${artifacts.dir}/MachineLearning"/>
<copy todir="${artifacts.dir}/MachineLearning">
<fileset dir="${python.root}">
<include name="**/*.py" />
<exclude name="__init__.py" />
</fileset>
</copy>
<mkdir dir="${artifacts.dir}/config"/>
<copy todir="${artifacts.dir}/config">
<fileset dir="${basedir}/config">
<include name="**/*" />
</fileset>
</copy>
</target>
</project>