-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
106 lines (77 loc) · 4.11 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!-- betterFORM XAR Builder
- creates Demo and Reference XARs
- shared XAR resources are placed int the directory /templates/xar -->
<project name="betterFORM XAR Builder" default="build-all" >
<xmlproperty file="build.properties.xml" semanticAttributes="true" keepRoot="false" description="import build properties"/>
<!-- Internal build properties -->
<property name="target.dir" value="target" description="directoy where all artefacts of the build are placed "/>
<property name="templates.dir" value="${basedir}/templates/xar" description="templates for XAR files, some of them get filtered"/>
<property name="xforms.src.dir" value="${basedir}/xars/xforms" description="xforms source directory"/>
<property name="xforms.dir" value="${target.dir}/xforms" description="xforms target directory"/>
<property name="timetracker.src.dir" value="${basedir}/xars/timetracker" description="timetracker source directory"/>
<property name="timetracker.dir" value="${target.dir}/timetracker" description="timetracker target directory"/>
<property name="xrxtunes.src.dir" value="${basedir}/xars/xrxtunes" description="xrxtunes source directory"/>
<property name="xrxtunes.dir" value="${target.dir}/xrxtunes" description="xrxtunes target directory"/>
<target name="clean" description="delete target dir">
<delete dir="${target.dir}"/>
</target>
<target name="build-all" description="build demo, reference and timetracker XARS">
<mkdir dir="${target.dir}"/>
<antcall target="create-xforms-xar"/>
<antcall target="create-timetracker-xar"/>
<antcall target="create-xrxtunes-xar"/>
</target>
<target name="create-xforms-xar" description="create xforms.xar">
<ant antfile="${basedir}/templates/build/build-xforms.xml"
target="prepare-xforms-xar"
inheritall="true"/>
<ant antfile="${basedir}/templates/build/build-xforms.xml"
target="create-xforms-xar"
inheritall="true"/>
</target>
<!-- TIMETRACKER XAR -->
<!-- TIMETRACKER XAR -->
<!-- TIMETRACKER XAR -->
<target name="create-timetracker-xar" description="create timetracker.xar">
<ant antfile="${basedir}/templates/build/build-timetracker.xml"
target="prepare-timetracker-xar"
inheritall="true"/>
<ant antfile="${basedir}/templates/build/build-timetracker.xml"
target="create-timetracker-xar"
inheritall="true"/>
</target>
<!-- XRXTunes XAR -->
<!-- XRXTunes XAR -->
<!-- XRXTunes XAR -->
<target name="create-xrxtunes-xar" description="create timetracker.xar">
<ant antfile="${basedir}/templates/build/build-xrxtunes.xml"
target="prepare-xrxtunes-xar"
inheritall="true"/>
<ant antfile="${basedir}/templates/build/build-xrxtunes.xml"
target="create-xrxtunes-xar"
inheritall="true"/>
</target>
<target name="update-xar-builder" description="update build.xml files to create xars">
<filter token="APP_NAME" value="${demo.shortname}"/>
<copy file="${basedir}/templates/build/create-xar.xml"
tofile="/templates/build/build-xforms.xml"
overwrite="true"
filtering="true"/>
<filter token="APP_NAME" value="${reference.shortname}"/>
<copy file="${basedir}/templates/build/create-xar.xml"
tofile="${basedir}/templates/build/build-reference.xml"
overwrite="true"
filtering="true"/>
<filter token="APP_NAME" value="${timetracker.shortname}"/>
<copy file="${basedir}/templates/build/create-xar.xml"
tofile="${basedir}/templates/build/build-timetracker.xml"
overwrite="true"
filtering="true"/>
<filter token="APP_NAME" value="${xrxtunes.shortname}"/>
<copy file="${basedir}/templates/build/create-xar.xml"
tofile="${basedir}/templates/build/build-xrxtunes.xml"
overwrite="true"
filtering="true"/>
</target>
</project>