-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
105 lines (84 loc) · 3.46 KB
/
build.xml
File metadata and controls
105 lines (84 loc) · 3.46 KB
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
<project name="build" default="build" basedir=".">
<property environment="env"/>
<taskdef resource="PCT.properties" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<typedef resource="types.properties" />
<target name="build" depends="initvars,init">
<echo message="env.ANT_HOME: ${env.ANT_HOME}" />
<antcall target="compile" />
<antcall target="unittest" />
<antcall target="package" />
</target>
<target name="initvars">
<property name="srcdir" location="./src" />
<property name="rootdir" location="./.." />
<property name="builddir" location="${rootdir}/build" />
<property name="artifactdir" location="${rootdir}/artifacts" />
<property name="configdir" location="./config" />
<property name="DLC" value="${env.DLC}" />
<echo message="rootdir: ${rootdir}" />
<echo message="srcdir: ${srcdir}" />
<echo message="builddir: ${builddir}" />
<echo message="artifactdir: ${artifactdir}" />
<echo message="configdir: ${configdir}" />
<echo message="executeUnittests: ${executeUnittests}" />
<echo message="DLC: ${DLC}" />
</target>
<target name="init" unless="initialized">
<delete dir="${builddir}" failonerror="false" />
<mkdir dir="${builddir}" />
<delete dir="${artifactdir}" failonerror="false" />
<mkdir dir="${artifactdir}" />
<property name="initialized" value="true" />
</target>
<target name="compile" depends="initvars">
<property name="dbdir" location="${builddir}/dbs/framework" />
<mkdir dir="${builddir}/xref_out" />
<PCTCompile destdir="${builddir}/rcode" dlchome="${DLC}" stopOnError="true"
graphicalMode="false" forceCompile="true" MD5="true"
keepXref="true" xrefDir="${builddir}/xref_out"
requireFullKeywords="true" requireFullNames="true" requireFieldQualifiers="true"
paramfile="${configdir}/build-ci.compile.pf">
<propath>
<pathelement path="${srcdir}" />
<pathelement path="${DLC}/tty/OpenEdge.Core.pl" />
<pathelement path="${DLC}/tty/netlib/OpenEdge.Net.pl" />
<pathelement path="${DLC}/tty/ablunit.pl" />
</propath>
<fileset dir="${srcdir}">
<include name="**/*.p" />
<include name="**/*.cls" />
<exclude name=".builder/**/*" />
<exclude name="sandbox/**/*" />
<exclude name="**/test-*.p" />
</fileset>
</PCTCompile>
</target>
<target name="unittest" if="executeUnittests">
<ABLUnit haltOnFailure="false" writeLog="true" dlchome="${DLC}">
<fileset dir="${srcdir}">
<include name="**/*_UT.cls" />
</fileset>
<propath>
<pathelement path="${srcdir}" />
<pathelement path="${DLC}/tty/OpenEdge.Core.pl" />
<pathelement path="${DLC}/tty/netlib/OpenEdge.Net.pl" />
<pathelement path="${DLC}/tty/ablunit.pl" />
</propath>
</ABLUnit>
</target>
<target name="package">
<PCTLibrary destFile="${artifactdir}/httpclient.pl" dlchome="${DLC}" noCompress="true"
cpInternal="utf-8" cpStream="utf-8">
<fileset dir="${builddir}/rcode">
<include name="**/*.r" />
<exclude name="**/*_UT.r" />
</fileset>
</PCTLibrary>
<tar destfile="${artifactdir}/xref.tar.gz" compression="gzip" >
<fileset dir="${builddir}/xref_out">
<include name="**/*" />
</fileset>
</tar>
</target>
</project>