-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (67 loc) · 2.13 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
<?xml version="1.0" encoding="utf-8"?>
<project name="tpug-ci-demo">
<property environment="env" />
<taskdef resource="PCT.properties">
<classpath>
<pathelement location="PCT-208.jar"/>
</classpath>
</taskdef>
<typedef resource="types.properties">
<classpath>
<pathelement location="PCT-208.jar"/>
</classpath>
</typedef>
<target name="init">
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<echo>Build starting at ${timestamp}</echo>
</target>
<target name="clean" depends="init">
<delete dir="target" />
</target>
<target name="create-database" depends="init">
<mkdir dir="target/db" />
<PCTCreateBase dbName="sample" destDir="target/db" schemaFile="schema/sample.df" dlcHome="${env.DLC}" />
</target>
<target name="build" description="Builds the project">
<mkdir dir="target/build" />
<PCTCompile destDir="target/build" dlcHome="${env.DLC}">
<!-- this can have other entries -->
<propath>
<pathelement location="src"/>
</propath>
<fileset dir="src" includes="*.p" />
<PCTConnection dbName="sample" dbDir="target/db" singleUser="true"/>
</PCTCompile>
</target>
<target name="build-tests" description="Compile test programs">
<mkdir dir="target/build-tests" />
<PCTCompile destDir="target/build-tests" dlcHome="${env.DLC}">
<!-- this can have other entries -->
<propath>
<pathelement location="src"/>
<pathelement location="tests" />
</propath>
<fileset dir="src" includes="*.p" />
<fileset dir="tests" includes="*.p" />
<PCTConnection dbName="sample" dbDir="target/db" singleUser="true"/>
</PCTCompile>
</target>
<target name="test" depends="init" >
<mkdir dir="target/test-results" />
<ABLUnit destDir="target/test-results" dlcHome="${env.DLC}">
<fileset dir="tests" includes="*Test.p" />
<propath>
<pathelement path="src" />
</propath>
<PCTConnection dbName="sample" dbDir="target/db" singleUser="true"/>
</ABLUnit>
</target>
<target name="package" depends="init" >
<zip destfile="target/thingapp.zip"
basedir="target/build"
excludes=".pct/"
/>
</target>
</project>