-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
91 lines (72 loc) · 3.07 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
<project name="build" default="build" basedir=".">
<taskdef resource="PCT.properties" />
<typedef resource="types.properties" />
<property environment="env"/>
<target name="build" depends="initvars,init">
<antcall target="createdb" />
<antcall target="compile" />
<antcall target="package" />
</target>
<target name="initvars">
<property name="srcdir" location="." />
<property name="rootdir" location="./../.." />
<property name="builddir" location="${rootdir}/build" />
<property name="dbdir" location="${builddir}/dbs/framework" />
<echo message="rootdir: ${rootdir}" />
<echo message="srcdir: ${srcdir}" />
<echo message="builddir: ${builddir}" />
<echo message="dbdir: ${dbdir}" />
<echo message="DLC: ${DLC}" />
</target>
<target name="init" unless="initialized">
<delete dir="${builddir}" failonerror="false" />
<mkdir dir="${builddir}" />
<property name="initialized" value="true" />
</target>
<target name="createdb" depends="init">
<property name="dbdir" location="${builddir}/dbs/framework" />
<delete dir="${dbdir}" failonerror="false" />
<mkdir dir="${dbdir}" />
<PCTCreateBase dbname="bfvlib" destdir="${dbdir}" dlchome="${DLC}" structfile="${srcdir}/bfvlib/schema/bfvlib.st"/>
<PCTLoadSchema dlcHome="${DLC}">
<PCTConnection dbName="bfvlib" dbDir="${dbdir}" singleUser="true" />
<fileset dir="${srcdir}/bfvlib/schema" includes="*.df" />
</PCTLoadSchema>
</target>
<!--
<target name="createdelta">
<PCTDumpIncremental destfile="${builddir}/db/delta.df" dlchome="${DLC}">
<sourcedb dbName="bfvlib" dbdir="${dbdir}" singleuser="true" logicalName="sourcedb"/>
<targetdb paramFile="${rootdir}/config/db.pf" />
</PCTDumpIncremental>
</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">
<DBConnection dbName="bfvlib" dbDir="${dbdir}" singleUser="true" />
<propath>
<pathelement path="${srcdir}" />
<pathelement path="${DLC}/tty/OpenEdge.Core.pl" />
<pathelement path="${DLC}/tty/netlib/OpenEdge.Net.pl" />
</propath>
<fileset dir="${srcdir}">
<include name="**/*.p" />
<include name="**/*.cls" />
<exclude name="sandbox/**/*" />
<exclude name="**/test-*.p" />
</fileset>
</PCTCompile>
</target>
<target name="package">
<PCTLibrary destFile="${builddir}/bfvlib.pl" dlchome="${DLC}">
<fileset dir="${builddir}/rcode">
<include name="**/*.r" />
</fileset>
</PCTLibrary>
</target>
</project>