-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (47 loc) · 2.02 KB
/
build.xml
File metadata and controls
55 lines (47 loc) · 2.02 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
<project name="ProBro" default="compile">
<property environment="env" />
<taskdef resource="PCT.properties"
classpath="${user.home}/.ant/lib/PCT.jar;/usr/share/ant/lib/PCT.jar;${env.DLC}/pct/PCT.jar" />
<typedef resource="types.properties"
classpath="${user.home}/.ant/lib/PCT.jar;/usr/share/ant/lib/PCT.jar;${env.DLC}/pct/PCT.jar" />
<DlcHome value="${env.DLC}" />
<echo>DLC=${env.DLC}</echo>
<path id="propath">
<pathelement path="resources/oe" />
<pathelement path="resources/oe/src" />
<pathelement path="resources/oe/tests" />
<pathelement location="${env.DLC}/tty/OpenEdge.Core.pl" />
</path>
<condition property="DB_DIR" value="/psc/wrk/sp2k" else="target/db/sp2k">
<os family="unix" />
</condition>
<property name="tempDir" value="target/temp" />
<target name="create_db">
<mkdir dir="${DB_DIR}" />
<PCTCreateDatabase sourceDb="${env.DLC}/sports2020" dbName="sp2k" destDir="${DB_DIR}" />
</target>
<target name="compile">
<echo message="Compiling ProBro Back-End" />
<PCTCompile destDir="target/rcode" keepXref="true" xmlXref="true" forceCompile="true">
<fileset dir="resources/oe/src" includes="**/*.cls,**/*.p" />
<fileset dir="resources/oe/tests" includes="**/*.cls,**/*.p" />
<propath refid="propath" />
<DBConnection dbName="sp2k" dbDir="${DB_DIR}" readOnly="true" />
</PCTCompile>
</target>
<target name="test" depends="compile">
<condition property="fileset.includes" value="${file}" else="**/*Test.cls,**/*Test.p">
<isset property="file" />
</condition>
<mkdir dir="${tempDir}" />
<ABLUnit writeLog="true" destDir="target" failOnError="true" haltOnFailure="true"
tempDir="${tempDir}">
<fileset dir="resources/oe/tests" includes="**/*.p,**/*.cls" />
<propath refid="propath" />
<Profiler enabled="true" outputDir="target/profiler" coverage="true" />
</ABLUnit>
</target>
<target name="deploy">
<!-- TODO -->
</target>
</project>