-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
95 lines (86 loc) · 3.69 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
<?xml version="1.0" encoding="utf-8"?>
<!-- Then execute : ant -lib %DLC%\pct\PCT.jar -lib xmltask.jar -DDLC=C:\Progress\OpenEdge-12.8 clean build -->
<project name="TEST" default="build">
<taskdef resource="PCT.properties" />
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" />
<property environment="env" />
<property name="DLC" value="${env.DLC}" />
<target name="init">
<mkdir dir="db" />
<mkdir dir="build" />
<mkdir dir="profiler" />
<mkdir dir="dump" />
<PCTVersion />
<ProgressVersion dlcHome="${DLC}" fullVersion="dlc.version.full" />
<echo message="${dlc.version.full}" />
</target>
<target name="clean">
<delete dir="db" />
<delete dir="build" />
<delete dir="profiler" />
<delete dir="test-output" />
</target>
<target name="db" depends="init">
<sports2000 destDir="db" dbName="sp2k" dlcHome="${DLC}" />
<echo file="dump/empty.df" />
</target>
<target name="build" depends="db">
<PCTCompile destdir="build" dlcHome="${DLC}" cpinternal="utf-8" cpstream="utf-8" cpcoll="basic" cpcase="basic" listing="true" relativePaths="true" xmlXref="false" keepXref="true" requireFullKeywords="false" requireFullNames="true" requireFieldQualifiers="true" requireReturnValues="true">
<fileset dir="src/classes" includes="**/*.cls" />
<fileset dir="src/procedures" includes="**/*.p" />
<fileset dir="src/tests" includes="**/*.p,**/*.cls" />
<propath>
<pathelement location="src/classes" />
<pathelement location="src/procedures" />
<pathelement location="src/tests" />
<pathelement location="${DLC}/tty/netlib/OpenEdge.Net.pl" />
</propath>
<DBConnection dbName="sp2k" dbDir="db" singleUser="true" logicalName="sports">
<Alias name="sp2k" />
<Alias name="foobar" />
</DBConnection>
</PCTCompile>
<!-- Unit tests -->
<mkdir dir="test-output" />
<ABLUnit dlcHome="${DLC}" destDir="test-output" failOnError="false" writeLog="true">
<fileset dir="src/tests" includes="*.cls" />
<propath>
<pathelement location="build"/>
<pathelement location="src/classes" />
<pathelement location="src/procedures" />
<pathelement location="src/tests" />
</propath>
<Profiler enabled="true" outputDir="profiler" coverage="true" />
<DBConnection dbName="sp2k" dbDir="db" singleUser="true" logicalName="sports">
<Alias name="sp2k" />
<Alias name="foobar" />
</DBConnection>
</ABLUnit>
<xmltask source="test-output/results.xml" dest="test-output/sonar.xml">
<rename path="//testsuites" to="testExecutions" />
<attr path="//testExecutions" attr="version" value="1" />
<rename path="//testsuite" to="file" />
<rename path="//file/@name" to="path" />
<rename path="//testcase" to="testCase" />
<remove path="//testCase/@time" />
<remove path="//file/properties" />
<attr path="//testCase" attr="duration" value="0" />
</xmltask>
<PCTRun procedure="sample/test1.p" dlcHome="${DLC}">
<propath location="build" />
<Profiler enabled="true" outputDir="profiler" coverage="true" />
<DBConnection dbName="sp2k" dbDir="db" singleUser="true" logicalName="sports">
<Alias name="sp2k" />
<Alias name="foobar" />
</DBConnection>
</PCTRun>
<PCTRun procedure="sample/cov.p" dlcHome="${DLC}">
<propath location="build" />
<Profiler enabled="true" outputDir="profiler" coverage="true" />
</PCTRun>
<PCTRun procedure="sample/test20.p" dlcHome="${DLC}">
<propath location="build" />
<Profiler enabled="true" outputDir="profiler" coverage="true" />
</PCTRun>
</target>
</project>